Re: [Rails] Couldn't find without an ID

2010-02-23 Thread Michael Pavling
On 23 February 2010 14:47, Butterson wrote: > Hello all. I'm new to RoR. I am having trouble trying to get a simple > edit/update going. Everytime I hit submit, I get the following error: > + > Couldn't find Content without an ID > > i've been trying to figure this out for 3 da

Re: [Rails] Couldn't find without an ID

2010-02-23 Thread Curtis Cooley
If you did not use a generator to make your scaffolding, then you may not have your routes set up correctly. new might be calling edit so there is not parameter. On Tue, Feb 23, 2010 at 6:47 AM, Butterson wrote: > Hello all. I'm new to RoR. I am having trouble trying to get a simple > edit/update

[Rails] Couldn't find without an ID

2010-02-23 Thread Butterson
Hello all. I'm new to RoR. I am having trouble trying to get a simple edit/update going. Everytime I hit submit, I get the following error: + Couldn't find Content without an ID Request Parameters: {"format"=>"#", "commit"=>"Update", "_method"=>"put", "authenticity_token"=>"

[Rails] Couldn't find without an ID

2009-03-24 Thread pleb...@gmail.com
hello , i have problem when i want to show page after user submit data into database. this is code in controller >>> class ComponentsController < ApplicationController def index end def databases @title = "Database" if request.post?and params[:seq] params[:seq][:sequence].gs

[Rails] Couldn't find without an ID

2008-11-20 Thread Smarty 2k
hi friends... my rhtml is for_for_test.rhtml Form_For Tester <% form_for :blog, :url => { :action => 'save', :id => @blog } do |f| %> Name: <%= f.text_field :blog %> <%= submit_tag 'Save' %> <% end %> controller is def form_for_test @blog= Blog.find[:all]