On Mon, Oct 5, 2009 at 12:42 AM, venki <[email protected]> wrote:
>
> Hi,
>
> I working on Ruby on Rails.I using Ajax in that.While using pagination
> in my application first time only I want to give request to Mysql Data
> Base ,If user click second page it should not take from database. Here
> I can use Set and get methods or different method will be there. How
> to implement this?

Ruby has attr_* for getters and setters:

http://www.ruby-doc.org/core/classes/Module.html#M001678


-- 
Greg Donald
http://destiney.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