![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
On Aug 19, 1:42*pm, mgpowers <gmichae... (AT) hotmail (DOT) com> wrote: Using rails 2.3.3 I've put greeting.rhtml in both app\views\app and app\views\application SAME result....Any other ideas ? As I said before, it should be greeting.html.erb , not greeting.rhtml . *Why are you using .rhtml ? *That hasn't been correct for a long time, and it makes me think that you may be following a tutorial for an older version. I've tried starting it in console mode but it just says Load Develope Env Yes, that's what it should say. *What's the problem? I'm trying to stay positive about Rails but am a little discouraged that I can get my first controller/view working *: What documentation have you been using? Best, -- Marnen Laibow-Koserhttp://www.marnen.org mar... (AT) marnen (DOT) org --~--~---------~--~----~------------~-------~--~----~ |
#12
| |||
| |||
|
|
I've changed the view name to greeting.html.erb as suggested but SAME results.. I was jusing the book Beginging Ruby on Rails and looking at the online documentation. Any other suggestions ? On Aug 19, 1:46*pm, Marnen Laibow-Koser <mar... (AT) marnen (DOT) org> wrote: On Aug 19, 1:42*pm, mgpowers <gmichae... (AT) hotmail (DOT) com> wrote: Using rails 2.3.3 I've put greeting.rhtml in both app\views\app and app\views\application SAME result....Any other ideas ? As I said before, it should be greeting.html.erb , not greeting.rhtml . *Why are you using .rhtml ? *That hasn't been correct for a long time, and it makes me think that you may be following a tutorial for an older version. I've tried starting it in console mode but it just says Load Develope Env Yes, that's what it should say. *What's the problem? I'm trying to stay positive about Rails but am a little discouraged that I can get my first controller/view working *: What documentation have you been using? Best, -- Marnen Laibow-Koserhttp://www.marnen.org mar... (AT) marnen (DOT) org --~--~---------~--~----~------------~-------~--~----~ |
#13
| |||
| |||
|
|
ok, so just to be complete, what do you get when you type: rake routes On Aug 19, 2:13*pm, mgpowers <gmichae... (AT) hotmail (DOT) com> wrote: I've changed the view name to greeting.html.erb as suggested but SAME results.. I was jusing the book Beginging Ruby on Rails and looking at the online documentation. Any other suggestions ? On Aug 19, 1:46*pm, Marnen Laibow-Koser <mar... (AT) marnen (DOT) org> wrote: On Aug 19, 1:42*pm, mgpowers <gmichae... (AT) hotmail (DOT) com> wrote: Using rails 2.3.3 I've put greeting.rhtml in both app\views\app and app\views\application SAME result....Any other ideas ? As I said before, it should be greeting.html.erb , not greeting.rhtml . *Why are you using .rhtml ? *That hasn't been correct for a long time, and it makes me think that you may be following a tutorial for an older version. I've tried starting it in console mode but it just says Load Develope Env Yes, that's what it should say. *What's the problem? I'm trying to stay positive about Rails but am a little discouraged that I can get my first controller/view working *: What documentation have you been using? Best, -- Marnen Laibow-Koserhttp://www.marnen.org mar... (AT) marnen (DOT) org- Hide quoted text - - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ |
#14
| |||
| |||
|
|
C:\Ruby\hello>rake routes (in C:/Ruby/hello) * /:controller/:action/:id * /:controller/:action/:id(.:format) On Aug 19, 2:25*pm,Rick<richard.t.ll... (AT) gmail (DOT) com> wrote: ok, so just to be complete, what do you get when you type: rake routes On Aug 19, 2:13*pm, mgpowers <gmichae... (AT) hotmail (DOT) com> wrote: I've changed the view name to greeting.html.erb as suggested but SAME results.. I was jusing the book Beginging Ruby on Rails and looking at the online documentation. Any other suggestions ? On Aug 19, 1:46*pm, Marnen Laibow-Koser <mar... (AT) marnen (DOT) org> wrote: On Aug 19, 1:42*pm, mgpowers <gmichae... (AT) hotmail (DOT) com> wrote: Using rails 2.3.3 I've put greeting.rhtml in both app\views\app and app\views\application SAME result....Any other ideas ? As I said before, it should be greeting.html.erb , not greeting.rhtml . *Why are you using .rhtml ? *That hasn't been correct for a long time, and it makes me think that you may be following a tutorial for an older version. I've tried starting it in console mode but it just says Load Develope Env Yes, that's what it should say. *What's the problem? I'm trying to stay positive about Rails but am a little discouraged that I can get my first controller/view working *: What documentation have you been using? Best, -- Marnen Laibow-Koserhttp://www.marnen.org mar... (AT) marnen (DOT) org- Hide quoted text - - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ |
#15
| |||
| |||
|
|
When yourhttp://localhost:3000comes up, what do you see if you follow the link "About_your_application's_environment"? I get: Ruby version * *1.8.7 (powerpc-darwin9.7.0) RubyGems version * * * *1.3.4 Rack version * *1.0 Rails version * 2.3.3 Active Record version * 2.3.3 Action Pack version * * 2.3.3 Active Resource version 2.3.3 Action Mailer version * 2.3.3 Active Support version *2.3.3 Application root * * * */Users/rick/hello Environment * * development Database adapter * * * *sqlite3 Database schema version 0 Also, using your app_controller.rb and views/app/greeting.rhtml in this environment does the right thing in response tohttp://localhost:3000/app/greeting. On Aug 19, 3:05*pm, mgpowers <gmichae... (AT) hotmail (DOT) com> wrote: C:\Ruby\hello>rake routes (in C:/Ruby/hello) * /:controller/:action/:id * /:controller/:action/:id(.:format) On Aug 19, 2:25*pm,Rick<richard.t.ll... (AT) gmail (DOT) com> wrote: ok, so just to be complete, what do you get when you type: rake routes On Aug 19, 2:13*pm, mgpowers <gmichae... (AT) hotmail (DOT) com> wrote: I've changed the view name to greeting.html.erb as suggested but SAME results.. I was jusing the book Beginging Ruby on Rails and looking at the online documentation. Any other suggestions ? On Aug 19, 1:46*pm, Marnen Laibow-Koser <mar... (AT) marnen (DOT) org> wrote: On Aug 19, 1:42*pm, mgpowers <gmichae... (AT) hotmail (DOT) com> wrote: Using rails 2.3.3 I've put greeting.rhtml in both app\views\app and app\views\application SAME result....Any other ideas ? As I said before, it should be greeting.html.erb , not greeting.rhtml . *Why are you using .rhtml ? *That hasn't been correct for a long time, and it makes me think that you may be following a tutorial for an older version. I've tried starting it in console mode but it just says Load Develope Env Yes, that's what it should say. *What's the problem? I'm trying to stay positive about Rails but am a little discouraged that I can get my first controller/view working *: What documentation have you been using? Best, -- Marnen Laibow-Koserhttp://www.marnen.org mar... (AT) marnen (DOT) org- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ |
#16
| |||
| |||
|
#17
| |||
| |||
|
#18
| |||
| |||
|
|
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/. --~--~---------~--~----~------------~-------~--~----~ |
#19
| |||
| |||
|
|
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) |
|
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 <rails-mailing-l... (AT) andreas-s (DOT) net 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/. |
#20
| |||
| |||
|
|
2009/8/21 mgpowers <gmichae... (AT) hotmail (DOT) com>: 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 <rails-mailing-l... (AT) andreas-s (DOT) net 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/.- Hide quoted text - - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ |
![]() |
| Thread Tools | |
| Display Modes | |
| |