On 22 May 2014 16:00, Fab Forestier <li...@ruby-forum.com> wrote:
> Colin Law wrote in post #1146799:
>>
>> Just set the action on each button to the url that you want invoked,
>> so something like edit_article_path( article_ id ) where article_id is
>> the id of the article on that row.
>>
>> Get it working just using link_to first, then make the link look like
>> a button if you want to.  Note that since the link is not actually
>> performing an operation, but is just taking you to a different page,
>> then you want a link not a form button.
>>
>> Colin
>
> You misunderstood me, I can't use this because in this view I haven't a
> model a use a varible in which I have all operations of my Operation
> model!
> So can't use edit_article_path too!!

You said that, for example, the link should take you to the edit page
of an article.  How does the user know what article that is?

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+unsubscr...@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%3D0gLtJvhSyg3VW7HjkzC0bnNKgwy_5rE8tRxR4Eh0w%2BDjAWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to