[Rails] Re: Re: Edit only your posts

2010-01-10 Thread Alberto Lopez
Colin Law wrote: > 2010/1/10 Alberto Lopez : >> Leonardo Mateo wrote: >>> On Sun, Jan 10, 2010 at 11:30 AM, Alberto Lopez >>> wrote: >>>> Hello, How can I do, when a user make a post, he only can edit his >>>> posts? >>>> >>&g

[Rails] Re: Edit only your posts

2010-01-10 Thread Alberto Lopez
Leonardo Mateo wrote: > On Sun, Jan 10, 2010 at 11:30 AM, Alberto Lopez > wrote: >> Hello, How can I do, when a user make a post, he only can edit his >> posts? >> > Check for the owner of the post on the edit action? Exactly, if you have an user on my website an po

[Rails] Edit only your posts

2010-01-10 Thread Alberto Lopez
Hello, How can I do, when a user make a post, he only can edit his posts? thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups

[Rails] union of two forms in one

2010-01-02 Thread Alberto Lopez
Hello, I have two forms. One of them is for keep the info in BBDD, and the other is to pay in PayPal. In my store I have in tienda_controller.rb an action to checkout. It redirect you to checkout1.html.erb #views/tienda/checkout1.html.erb PASO 1 <%= error_messages_for 'pedido' %> <% form_f