That is what I&#39;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">&lt;<a href="mailto:Tomas.Matousek@microsoft.com">Tomas.Matousek@microsoft.com</a>&gt;</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);">&nbsp;</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);">&nbsp;</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);">&nbsp; def info</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;&nbsp;&nbsp; view_data.add("Platform", "IronRuby Mvc 1.0")</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp; 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);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</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);">&nbsp;</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>&nbsp;</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>
&nbsp;&nbsp;&nbsp; [RubyModuleDefinition(&quot;IronRubyMvc&quot;)]<br>
&nbsp;&nbsp;&nbsp; public static class IronRubyMvcModule<br>
&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
[RubyClassDefinition(&quot;Controller&quot;, Extends = typeof(RubyController))]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public class RubyControllerOps<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
[RubyMethodDefinition(&quot;info&quot;, RubyMethodAttributes.PublicInstance)]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public
static void Info(RubyController self)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
self.ViewData().Add(&quot;Platform&quot;, &quot;IronRuby Mvc 1.0&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; }<br>
}<br>
<br>
I then used the classinitgenerator to create an initializer class.<br>
But when I require the assembly after compiling I can&#39;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>