[Rails] I get Error after creating product

2010-08-17 Thread Musdev Musdev
I get the following error inside my browser: ActiveRecord::RecordNotFound in ProductsController#show Couldn't find Product without an ID RAILS_ROOT: /Users/musdev/work/depot Application Trace | Framework Trace | Full Trace

[Rails] Re: I get Error after creating product

2010-08-17 Thread Musdev Musdev
Anubhaw Prakash wrote: Musdev Musdev wrote: I get the following error inside my browser: ActiveRecord::RecordNotFound in ProductsController#show Couldn't find Product without an ID Request Parameters: {id=2} The code on line 17 in my controller looks like this def show

[Rails] Re: I get Error after creating product

2010-08-17 Thread Musdev Musdev
Anubhaw Prakash wrote: Hi, stack level too deep error is not due to code modifications. Taking a look at following article might solve your problem 'http://dalibornasevic.com/posts/5-ruby-stack-level-too-deep-systemstackerror'. The error is due to system stack level being less then

[Rails] Re: I get Error after creating product

2010-08-17 Thread Musdev Musdev
Ar Chron wrote: You don't need to reference the show.html.erb in your controller... template implementations have that # show.html.erb text as a reminder of which view is invoked. def show @product = Product.find(params[:id]) respond_to do |format| format.html # show.html.erb

[Rails] BUNDLER ISSUE

2010-08-16 Thread Musdev Musdev
Hello, When I run bundle install I get the following error message below. Can someone please give me some assistance. Thanks ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /Users/musdev/.rvm/rubies/ruby-1.9.1-p378/bin/ruby extconf.rb Can't handle 1.9.x yet ***

[Rails] Re: Getting Error in browser

2010-08-05 Thread Musdev Musdev
Ar Chron wrote: Musdev Musdev wrote: Showing app/views/products/index.html.erb where line #6 raised: You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.each Extracted source (around line #6): 3: 4

[Rails] Getting Error in browser

2010-08-04 Thread Musdev Musdev
I get this Error message in my browser SyntaxError in ProductsController#index /Users/musdev/work/depot/app/models/product.rb:11: Invalid char `\x1B' in expression The code in my product.rb file class Product ActiveRecord::Base validates_presence_of :title, :description, :image_url

[Rails] Re: Getting Error in browser

2010-08-04 Thread Musdev Musdev
Dave Aronson wrote: On Wed, Aug 4, 2010 at 03:00, Musdev Musdev li...@ruby-forum.com wrote: I get this Error message in my browser �SyntaxError in ProductsController#index /Users/musdev/work/depot/app/models/product.rb:11: Invalid char `\x1B' in expression The code in my product.rb

[Rails] Re: POST and GET

2010-08-02 Thread Musdev Musdev
Adam Stegman wrote: Also, a GET is just a read, while a POST is used to create. Like the Wikipedia article linked before says: Note that GET should not be used for operations that cause side-effects, such as using it for taking actions in web applications. Thanks guys this really helped out

[Rails] POST and GET

2010-08-01 Thread Musdev Musdev
HEY Guys, Im new to rails. Can someone help explain POST and GET inrails, and maybe give an example? When is it used? Im learning rails via Agile web Development with Rails, and soon to download peepcode video's, are these good resources to learn from? Regards -- Posted via

[Rails] The Future OF RUBY and RUBY ON RAILS

2010-08-01 Thread Musdev Musdev
DO you guys see Ruby and Ruby on Rails sticking around for a while? and do you see an increase in demand for ruby/ruby on rails developers? Regards -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.