I am newbie to Ruby on Rails and trying to follow through my first
tutorial on RoR. I am following the "Getting Started with Rails"
manual on RoR.
When I type
"$ ruby script\generate scaffold Post blog"
it gives me an error something to the effect that says invalid number
So I do the following.
"$ ruby script\generate scaffold Post"
That generates the scaffold code. This seems to work and generate all
files. However, it does not generate any of the fields that are
required for my model or views e.g.
app\model\post.rb has the following code
class Post < ActiveRecord::Base
app\views\posts\new.html.erb has the following code
<% form_for(@post) do |f| %>
<%= f.error_messages %>
<%= f.submit "Create" %>
<% end %>
<%= link_to 'Back', posts_path %>
I am using ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] and
CAN SOMEONE GUIDE ME?