Frederick Cheung wrote:
> On Nov 10, 12:58�am, Scott Kulik <[EMAIL PROTECTED]>
> wrote:
>> Frederick Cheung wrote:
> 
>>
>> thanks for the info fred.
>>
>> i was just thinking that I should probably do the checking to see if an
>> item is locked in the model before updating. �so in item.rb:
>>
> Personally I would keep this in the controller. For example if you had
> a cron job that updating items at night or something like that you
> wouldn't want to have to fake up a user for that.
> 
> Fred

thanks fred, i put it in the controller and it's working great.

-- 
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to