You are here

The scaffolding command is no longer working in Ruby

What's going on, did they depricate it?

here's an example of the scaffold command for ruby 2.0 you need to list all the editable fields in 2.0 This will create CRUD views (a gui to insert update and delete within your database table)

C:\rails_apps\mrs_roboto>ruby script/generate scaffold user username:string password:string first_name:string last_name:string

NOTE user in this case is the singular form of users and users is actually the name of the table You need to put the singular form for use with the scaffolding command

Add new comment

Mediawiki

  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <pre><code><br><p>
  • Web page addresses and e-mail addresses turn into links automatically.

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer