Hey,

If i have a function in my model:
  def mark_sold
    self.update_attribute(:market_status, 'sold')
  end

Is it possible for this to be called via an on page link?

Then I'd like to ajax it so a user could just scroll down a list
clicking all links to "mark as sold" as he comes across old inventory.

Thanks,
brianp

-- 
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