I’m learning about Ruby on Rails. Please help me.
Althougth I do step-by-step with books(config data, generate model, add
data field in db/migrate/file.rb) but i can’t generate with scaffold or
error.
When run command: ruby script\generate scaffold Employee
And check: http://127.0.0.1:3000/employees/
→ it shows successful with show,edit,destroy however it can’t show
data field although i inserted data in mysql. It shows:
---------------------------------------------
Listing employees
Show Edit Destroy
Show Edit Destroy
New employee
----------------------------------------
Or if i click on: New employee, it doesn’t have textbox to input data.
It shows:
---------------------------------
New employee
Back
----------------------------------
About your application’s environment:
Ruby version 1.8.6 (i386-mswin32)
RubyGems version 0.9.4
Rails version 2.0.2
Active Record version 2.0.2
Action Pack version 2.0.2
Active Resource version 2.0.2
Action Mailer version 2.0.2
Active Support version 2.0.2