[Rails] Re: I'm restarting to work with ruby on rails, but having configurations problems
On 26 set, 02:47, Delirium tremens pedbe...@gmail.com wrote: On 26 set, 02:29, Delirium tremens pedbe...@gmail.com wrote: I have the Shovell source code from the book Simply Rails 2, but I'm having problems running it. preGetting started Here’s how to get rolling: 1. Create your databases and edit config/database.yml Rails needs to know your login and password. 2. Use script/generate to create your models and controllers To see all available options, run it without parameters. 3. Set up a default route and remove or rename this file Routes are set up in config/routes.rb./pre I took step 1, then since the models and controllers are already generated for a source code that already exists, I skipped step 2 and since a default route is already set for a source code that already exists, I skipped step 3. My config/roubes.rb has map.root :controller = stories, buthttp://localhost:3000/stilldoesn't load the stories controller index. Why? I hadn't deleted public/index.html, but now I'm getting the error messagehttp://pastie.org/631341How to solve? After deleting public/index.html, I renamed application.rb to application_controller.rb, then used rake to migrate my data with rake db:migrated and it worked! --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] I'm restarting to work with ruby on rails, but having configurations problems
I have the Shovell source code from the book Simply Rails 2, but I'm having problems running it. preGetting started Here’s how to get rolling: 1. Create your databases and edit config/database.yml Rails needs to know your login and password. 2. Use script/generate to create your models and controllers To see all available options, run it without parameters. 3. Set up a default route and remove or rename this file Routes are set up in config/routes.rb./pre I took step 1, then since the models and controllers are already generated for a source code that already exists, I skipped step 2 and since a default route is already set for a source code that already exists, I skipped step 3. My config/roubes.rb has map.root :controller = stories, but http://localhost:3000/ still doesn't load the stories controller index. Why? --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] Re: I'm restarting to work with ruby on rails, but having configurations problems
On 26 set, 02:29, Delirium tremens pedbe...@gmail.com wrote: I have the Shovell source code from the book Simply Rails 2, but I'm having problems running it. preGetting started Here’s how to get rolling: 1. Create your databases and edit config/database.yml Rails needs to know your login and password. 2. Use script/generate to create your models and controllers To see all available options, run it without parameters. 3. Set up a default route and remove or rename this file Routes are set up in config/routes.rb./pre I took step 1, then since the models and controllers are already generated for a source code that already exists, I skipped step 2 and since a default route is already set for a source code that already exists, I skipped step 3. My config/roubes.rb has map.root :controller = stories, buthttp://localhost:3000/still doesn't load the stories controller index. Why? I hadn't deleted public/index.html, but now I'm getting the error message http://pastie.org/631341 How to solve? --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~--~~~~--~~--~--~---
[Rails] 3 failures, 4 errors
error http://pastie.org/309370 failure http://pastie.org/309371 error http://pastie.org/309372 error http://pastie.org/309373 error http://pastie.org/309374 failure http://pastie.org/309376 failure http://pastie.org/309378 How to solve these 7 problems? --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com 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 -~--~~~~--~~--~--~---
[Rails] Re: 3 failures, 4 errors
Update! I have 2 failures and 4 errors now, but only 2 kinds of problems! The first kind is something about user_path and the last is something about assert_select. the first kind http://pastie.org/309396 the last kind http://pastie.org/309392 On Nov 7, 6:12 am, Delirium tremens [EMAIL PROTECTED] wrote: error http://pastie.org/309370 failure http://pastie.org/309371 error http://pastie.org/309372 error http://pastie.org/309373 error http://pastie.org/309374 failure http://pastie.org/309376 failure http://pastie.org/309378 How to solve these 7 problems? --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com 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 -~--~~~~--~~--~--~---
[Rails] Re: 3 failures, 4 errors
The 7 problems are solved! On Nov 7, 7:01 am, Delirium tremens [EMAIL PROTECTED] wrote: Update! I have 2 failures and 4 errors now, but only 2 kinds of problems! The first kind is something about user_path and the last is something about assert_select. the first kindhttp://pastie.org/309396 the last kindhttp://pastie.org/309392 On Nov 7, 6:12 am, Delirium tremens [EMAIL PROTECTED] wrote: errorhttp://pastie.org/309370 failurehttp://pastie.org/309371 errorhttp://pastie.org/309372 errorhttp://pastie.org/309373 errorhttp://pastie.org/309374 failurehttp://pastie.org/309376 failurehttp://pastie.org/309378 How to solve these 7 problems? --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com 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 -~--~~~~--~~--~--~---
[Rails] the page does not load
I am trying to load an upcoming stories page for a Digg clone, but I am getting an error message. http://pastie.org/309612 How to correct the error? --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com 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 -~--~~~~--~~--~--~---
[Rails] Re: the page does not load
I think I have to edit the user_ids for the stories, but how can I do that? On Nov 7, 2:42 pm, Frederick Cheung [EMAIL PROTECTED] wrote: On 7 Nov 2008, at 16:38, Delirium tremens wrote: I am trying to load an upcoming stories page for a Digg clone, but I am getting an error message.http://pastie.org/309612How to correct the error? story.user was nil and you tried to do something with it. Why that is only you can say. Fred --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com 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 -~--~~~~--~~--~--~---
[Rails] error message
When I run a test, I get the error message: FormatError: Bad data for Story fixture named two (nil). What should I do about it? --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com 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 -~--~~~~--~~--~--~---
[Rails] Re: error message
My stories.yml file did not have identation. I added it, with 2 spaces, then it worked! On 2 nov, 17:08, Frederick Cheung [EMAIL PROTECTED] wrote: On 2 Nov 2008, at 18:53, Delirium tremens wrote: When I run a test, I get the error message: FormatError: Bad data for Story fixture named two (nil). What should I do about it? sounds like your stories.yml fixture file has something fishy in it. Fred --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com 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 -~--~~~~--~~--~--~---
[Rails] cloud computing and Ruby on Rails
How does cloud computing relate to Ruby on Rails? --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com 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 -~--~~~~--~~--~--~---
[Rails] script/dbconsole not working
Take a look... http://d.imagehost.org/0966/dbconsole_image.png http://d.imagehost.org/0709/console_image.png How to solve this problem? --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com 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 -~--~~~~--~~--~--~---
[Rails] avoiding ruby script/server and eliminating :3000
Is there a way to avoid having to type ruby script/server to test my site? Is there a way to eliminate :3000 from http://localhost:3000/ --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com 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 -~--~~~~--~~--~--~---
[Rails] ruby on rails tweaks
Is there a way to avoid having to type ruby script/server in C:\www \myrubysite\? Is there a way to eliminate :3000 from http://localhost:3000/ ? Is there a way to add 'myrubysite to http://localhost/ ? --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com 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 -~--~~~~--~~--~--~---
[Rails] Re: file missing
On 13 out, 15:36, Raistlin Majere [EMAIL PROTECTED] wrote: Do you have a rails.cmd or a rails.bat at C:\ruby\bin? I have a rails.bat, but not a rails.cmd! I am wondering if I accidentally deleted rails.cmd! What do you say? I changed my nick name from Raistlin Majere to Delirium tremens. --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com 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 -~--~~~~--~~--~--~---
[Rails] Re: file missing
On 13 out, 15:40, Delirium tremens [EMAIL PROTECTED] wrote: On 13 out, 15:36, Raistlin Majere [EMAIL PROTECTED] wrote: Do you have a rails.cmd or a rails.bat at C:\ruby\bin? I have a rails.bat, but not a rails.cmd! I am wondering if I accidentally deleted rails.cmd! What do you say? I changed my nick name from Raistlin Majere to Delirium tremens. Tutorials about configuring Eclipse to create rails projects keep mentioning rails.cmd... --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com 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 -~--~~~~--~~--~--~---
[Rails] Re: file missing
On 13 out, 16:21, Frederick Cheung [EMAIL PROTECTED] wrote: On Oct 13, 8:01 pm, Delirium tremens [EMAIL PROTECTED] wrote: On 13 out, 15:40, Delirium tremens [EMAIL PROTECTED] wrote: On 13 out, 15:36, Raistlin Majere [EMAIL PROTECTED] wrote: Do you have a rails.cmd or a rails.bat at C:\ruby\bin? I have a rails.bat, but not a rails.cmd! I am wondering if I accidentally deleted rails.cmd! What do you say? I changed my nick name from Raistlin Majere to Delirium tremens. Tutorials about configuring Eclipse to create rails projects keep mentioning rails.cmd... IIRC older versions of rubygems used .cmd, newer ones use .bat (http:// osdir.com/ml/lang.ruby.gems.devel/2007-10/msg00071.html) Fred Thanks, Fred!!! That solves the problem! --~--~-~--~~~---~--~~ 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 rubyonrails-talk@googlegroups.com 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 -~--~~~~--~~--~--~---