title: Generating rails model from existing fields
body: <p>I'm using rails 2.3.9. I have a table already and I want to reverse generate a model from there but it gives me "uninitialised constant" error when i run -
  rails generate model table_name</p>
  
  <p>trying this - ruby script/generate model table_name 
  also gives me errors like- </p>
  
  <p>syntax error, unexpected tIDENTIFIER, expecting kDO or '{' or '(' </p>
  
  <p>Can someone please guide me what could be the issue.</p>