<br><br><div><span class="gmail_quote">On 7/18/07, <b class="gmail_sendername">Pierre Gambarotto</b> &lt;<a href="mailto:pierre.gambarotto@enseeiht.fr">pierre.gambarotto@enseeiht.fr</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello I&#39;m a newcomer in the Masterview world<br><br>I&#39;m trying to use it whith a litlle REST project.<br>I&#39;d like to generate for instance :<br>---<br>&lt;%= link_to( &#39;Show&#39;, user_path(user) ) %&gt;<br>
---<br><br>(REST controller named UsersController in users_controller.rb)<br><br><br>If I&#39;m correct, the first argument is ignored, isn&#39;t it ?<br>After several tries, I ended up with something like :<br>---<br>&lt;a class=&quot;show_link&quot; href=&quot;
show.html&quot; mv:link_to=&quot;garbage,<br>user_path(user)&quot;&gt;Show&lt;/a&gt;<br>---<br><br>It seems I&#39;m missing something with the correct usage of the first argument.<br><br>Any insight would be much appreciated
</blockquote><div><br><br>Yes, the first argument is optional to match the syntax of the original link_to helper.<br><br>Try this and see if it works<br><br>&lt;a class=&quot;show_link&quot; href=&quot;show.html&quot; mv:link_to=&quot;:action =&gt;&nbsp; &#39;show&#39; &quot;&gt;Show&lt;/a&gt;
<br><br>I believe there might be a parsing issue when using the new&nbsp; url_&nbsp; rest style helpers with MasterView. Something that is on my plate to look at. In the meantime you can still use the hash style argument and it should work fine.
<br><br>Let me know if you have any problems.<br><br>Blessings,<br><br>Jeff<br></div></div><br><br clear="all"><br>-- <br>Jeff Barczewski, MasterView core team<br>Inspired Horizons Ruby on Rails Training and Consultancy<br>
<a href="http://inspiredhorizons.com/">http://inspiredhorizons.com/</a>