Re: [Rails] Re: Re: Edit only your posts

2010-01-11 Thread Colin Law
2010/1/10 Alberto Lopez li...@ruby-forum.com: ... Aaahm..  I think yes. I don't know another way to make it :S (I'm a little bit novice. I know a little bit Ruby but I get into mess with some things). I have thought to make a function current_user probing the user by name and make an if

[Rails] Re: Re: Edit only your posts

2010-01-10 Thread Alberto Lopez
Colin Law wrote: 2010/1/10 Alberto Lopez li...@ruby-forum.com: Leonardo Mateo wrote: On Sun, Jan 10, 2010 at 11:30 AM, Alberto Lopez li...@ruby-forum.com 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?