2009/8/21 mgpowers <[email protected]>:
>
> Thanks for all the support....I am really trying to hang in there
> especially since there appears to be
> many good things with Rails but it is hard not knowing exactly why its
> failing.....Here is what happened
> when I tired  creating the contollter...
>
>
> C:\Ruby\mgp>ruby script/create controller myfirst greeting
> ruby: No such file or directory -- script/create (LoadError)

I think that was a typo in Rails List's post, it should have been
ruby script/generate controller myfirst greeting

Colin


> C:\Ruby\mgp>ruby script\create controller myfirst greeting
> ruby: No such file or directory -- script/create (LoadError)
>
> C:\Ruby\mgp>dir
>  Volume in drive C has no label.
>  Volume Serial Number is 0C3F-B4D3
>
>  Directory of C:\Ruby\mgp
>
> 08/21/2009  10:13 AM    <DIR>          .
> 08/21/2009  10:13 AM    <DIR>          ..
> 08/21/2009  10:13 AM    <DIR>          app
> 08/21/2009  10:13 AM    <DIR>          config
> 08/21/2009  10:13 AM    <DIR>          db
> 08/21/2009  10:13 AM    <DIR>          doc
> 08/21/2009  10:13 AM    <DIR>          lib
> 08/21/2009  10:13 AM    <DIR>          log
> 08/21/2009  10:13 AM    <DIR>          public
> 08/21/2009  10:13 AM               307 Rakefile
>
> On Aug 21, 9:28 am, Rails List <[email protected]>
> wrote:
>> mgpowers, do one thing.  Create a new rails application mgp
>>
>> rails mgp
>> cd mgp
>> ruby script/create controller myfirst greeting
>>
>> in myfirst controller greeting action put
>>
>>   def greeting
>>     @n = "I am mgp"
>>   end
>>
>> in app\views\myfirst\greeting.html.erb put this
>>
>> <b>Yes its working! <%...@n%></b>
>>
>> remove your \public\index.html
>>
>> Now start server -- ruby script/server (you should be inside your mgp
>> directory)
>>
>> gotohttp://localhost:3000/myfirst/greeting
>>
>> you should get appropriate results.
>>
>> let me know how it goes.
>>
>> http://www.classifiedscript.in
>> Free Craigslist Classified Script
>> --
>> Posted viahttp://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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to