Ruby on Rails Tuesday, August 24, 2010

Colin Law wrote:
> On 24 August 2010 21:59, Zack Nathan <lists@ruby-forum.com> wrote:
>>> the 'real' website I would recommend coding up what you really want
>> �end
>> in the controller and place conditions in there that will change the
>> find method into the database to give me all the stuff based on the
>> conditions i give it in that action. How do i format the conditions
>> though?
>
> 1. First work out what the conditions are - in detail that is.
> 2. Then work out how to enter them.
>
> Do you know the answer to 1?
>
> Colin

Yup, the list will only be allowed have records that have a created_by
value that is equal to the logged in users name, which is
current_user.name
--
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-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment