Rat King wrote:
> I am sure many people have asked this already... But I could not find
> anything helpful. I am trying to use RoR with an existing database with
> tables already defined.
> 
> I used script/generate scaffold account
> 
> But when I point to localhost:3000/account, no table columns showed up.
> The "new account" link is there, but no columns nor any content (and I
> have content in my db table). When I click on new account, only the
> create button showed up. When I click on the create button, a new entry
> gets added to my existing db table, with all fields blank!
> 
> What's up with this? It's obviously able to talk to the DB, but what did
> I do wrong that caused RoR to not able to figure out what fields already
> exist?
> 
> My table was named account, but ActiveScaffold insists on using accounts
> as the table name, so I added set_table_name "account" to my Model
> class.
> 
> I appreciate any help.
> 
> Thank you,
> Rat


In model there is Account (A capital letter) u have change in schema and 
migrate folder bd/ ..
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to