That is what I'm doing now <br><br><br>The other question was out of curiosity :)<br><br>
<br><div class="gmail_quote">On Sun, Feb 1, 2009 at 9:30 PM, Tomas Matousek <span dir="ltr"><<a href="mailto:Tomas.Matousek@microsoft.com">Tomas.Matousek@microsoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Any reason why you don't prefer to work with RubyController
class directly from Ruby code? </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">…</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">class RubyController</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> def info</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> view_data.add("Platform", "IronRuby Mvc 1.0")</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> end</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">end</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Tomas</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>
[mailto:<a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>] <b>On Behalf Of </b>Ivan Porto
Carrero<br>
<b>Sent:</b> Sunday, February 01, 2009 11:03 AM<br>
<b>To:</b> <a href="mailto:ironruby-core@rubyforge.org" target="_blank">ironruby-core@rubyforge.org</a><br>
<b>Subject:</b> [Ironruby-core] Using the generated initializer</span></p>
</div><div><div></div><div class="Wj3C7c">
<p> </p>
<p style="margin-bottom: 12pt;">Hi<br>
<br>
I thought I created a ruby module and ruby class but I must be doing something
wrong.<br>
<br>
using RubyMethodAttributes=IronRuby.Runtime.RubyMethodAttributes;<br>
using RubyModuleDefinition = IronRuby.Runtime.RubyModuleAttribute;<br>
using RubyClassDefinition = IronRuby.Runtime.RubyClassAttribute;<br>
using RubyMethodDefinition = IronRuby.Runtime.RubyMethodAttribute;<br>
<br>
namespace IronRubyMvcLibrary.Controllers<br>
{<br>
[RubyModuleDefinition("IronRubyMvc")]<br>
public static class IronRubyMvcModule<br>
{<br>
[RubyClassDefinition("Controller", Extends = typeof(RubyController))]<br>
public class RubyControllerOps<br>
{<br>
[RubyMethodDefinition("info", RubyMethodAttributes.PublicInstance)]<br>
public
static void Info(RubyController self)<br>
{<br>
self.ViewData().Add("Platform", "IronRuby Mvc 1.0");<br>
}<br>
}<br>
<br>
}<br>
}<br>
<br>
I then used the classinitgenerator to create an initializer class.<br>
But when I require the assembly after compiling I can't get to IronRubyMvc or
the class.<br clear="all">
<br>
Do I need to do something else?</p>
</div></div></div>
</div>
<br>_______________________________________________<br>
Ironruby-core mailing list<br>
<a href="mailto:Ironruby-core@rubyforge.org">Ironruby-core@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a><br>
<br></blockquote></div><br>