[Rails] Re: make rails connect with database
1. Rails new First_app
2. Change config database.yml
3. Rake db:schema:dump
4. Rails g scaffold Anggota –migration false
5. Change First_app\app\model\anggotum.rb with this syntax
-------------------------------------
class Anggotum < ActiveRecord::Base
set_table_name "anggota"
end
---------------------------------------
i have try to make new rails app, and that is the step by step that i
did.
did i do wrong step??
--
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 https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home