On 18 October 2011 15:01, prasetya utama <[email protected]> wrote:
> hello i want to ask, how to generate model from table in my database.
> That's possibel ?

If you have a table widgets then all you need for the model is a file
models/widget.rb containing

class Widget < ActiveRecord::Base
end

Rails will do the rest.

Colin

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