On 26 May 2014 16:09, Fab Forestier <lists@ruby-forum.com> wrote:
> Scott Ribe wrote in post #1147132:
>> On May 26, 2014, at 8:00 AM, Fab Forestier <lists@ruby-forum.com> wrote:
>>
>>> But the in the methode ajouter how can I have something like
>>> @myvariable=n or @myvariable=@defautrec[i] where I is the current line
>>> of the table?
>>
>> <%= link_to controller: "pages", action: "ajouter", id: n %>
>
> And then how can use the id in my methode?
A long time ago I seem to remember suggesting that you *work right
through* railstutorial.org and that then you would understand the
basics of rails and would not have to ask for answers to simple
questions. I believe your replied that you had looked through the
tutorials. Once again I request that you please take a few days out
and work right through it, including doing all the exercises. In the
long run you will save yourself and us a lot of time.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuRaTJQv6X-mEJq88m59fYZtyk1K0UueMRhKyz_nwJEug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment