similar to: Help with form_for

Displaying 20 results from an estimated 20000 matches similar to: "Help with form_for"

2008 Jul 01
4
Errno::EIO - Input/output error
hi all, my appl works well but i get the following error suddenly for few pages. to resolve this, i had to restart the server everytime. then it works fine for some time, but after some time it appears again. this is happening contineously. i searched for solution on this, but didn''t get much. can anybody help in this plaese? any help will be greatly appreciated... i''ve pasted
2008 Jun 10
7
ActionMailer undefined method `parameters' - Rails 2.1
Hello Rubyists, I''m currently trying to get email hooked up via ActionMailer, and while I''ve gotten it to work in the past on Rails 1.2.x, I''m seeing an error that I''m unfamiliar with. Right now, I''m just trying to send email from my dev box via the SMTP server at work. My development.rb file: #...snip config.action_mailer.delivery_method = :smtp
2008 Apr 09
3
form_tag and form_for cause #protect_from_forgery errors
Hey All, I''m trying to do a simple form_for (and I also get it with form_tag) and I''m getting the following error: ActionView::TemplateError (No :secret given to the #protect_from_forgery call. Set that or use a session store capable of generating its own keys (Cookie Session Store).) on line #2 of users/new.fbml.erb: 1: <h1>Welcome To Courses, Let''s Get
2008 Jun 12
3
Upgrading to 2.1 breaks my named routes
I just upgraded to 2.1 and attempted to log in to my application and when this line is reached in my login action: redirect_to(index_url) I get the error "wrong number of arguments (0 for 1)" [stack trace below]. Here''s my route: map.index ''index'', :controller => ''e_simply'', :action => ''index'' I found
2009 Jul 29
0
Problem uploading file to database mysql blob field
Hi All, Please help me ,I need to look into this issue asap, I need to change the redmine functionality of uploading files to disk to upload them to database. I tried suggestion on http://dizzy.co.uk/ruby_on_rails/contents/store-file-uploads-in-database but no luck , My form is multipart but still getting the error. Please bare with me I am new to ruby and rails. Here is the like for my
2008 Oct 14
4
replace_html not working
hallo, everyone can anybody help me? i did add my code under ENGINES as a module in a project. before the change , all worked . and the differenz between both is only about application''s environment, before is Ruby version 1.8.6 (i486-linux) RubyGems version 1.1.1 Rails version 2.0.2 Active Record version 2.0.2 Action Pack version 2.0.2
2008 Nov 02
1
ROR Ubuntu 8.10: Action Controller: Exception caught
System: Virtual Box running Ubuntu 8.10 as guest Fellowed ( http://wiki.rubyonrails.org/rails/pages/RailsOnUbuntu ) to instal RoR Book: Agile Web Development with Rails: Second Edition Issue: (pleas help) I''m creating a simple hello world application as defined on pages 36-40. Generating controller called ''Say''. How to I fix issue below? it returns this error rather
2008 Aug 26
1
upload_column NoMethodError
Hi all, I''m using uploadcolumn plugin for file uploading. Followed the README file. Put "upload_column :src_file" in my model file as instructed, and i got this NoMethodError for the upload_column. This is the full trace: /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:1667:in `method_missing'' app/models/speech.rb:2
2009 May 20
8
ctionView::TemplateError (undefined method `start_form_tag'
I upgrade my version of ruby on rails And my SO Free BSD was working with Ruby 1.8 + 1.2.6 and now Mandriva Linux with Ruby 1.8 + Rails 2.1.1 it''s not working ERROR: Processing LoginController#fazer_login (for 192.168.3.210 at 2009-05-20 09:20:53) [GET] Session ID: BAh7BzoNYWRtaW5faWQwIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpG
2008 May 16
0
attachment_fu and/or rmagick on osx -- weird error
One of our developers is getting a weird error from attachment_fu and/or rmagick on OSX. And even weirder because he''s used attachment_fu and rmagick on other projects without difficulty. This all works fine on debian/ubuntu. See the stack trace below. Any suggestions? Btw, the code that''s blowing up is retrieving the attachment_fu info. The presence of image_science in
2008 May 08
5
Simple Generated Component Suddenly Gives Errors
What am I doing wrong here when I wrote a very simple component so : C:\ruby\letter4sure>ruby script\generate scaffold pso_printers printing_setting_id:integer pso_id:integer exists app/models/ exists app/controllers/ exists app/helpers/ create app/views/pso_printers ... Then I did a rake db:migrate And then I simply went to take a look at the url for the above :
2008 Jun 22
1
will paginate?
I installed the gem will_paginate and made a simple view to mess out how it works in the controller i have @sites = Site.paginate :per_page => 10, :page => params[:page] simple view <% for @sites in @sites %> <%= @sites.naam %> <%= will_paginate @sites %> <% end %> but i got no result ActionView::TemplateError (undefined method `page_count''
2007 Jul 12
1
form_tag doesn't accept a string anymore in edge rails?
So, here''s the offending line. Note that I''m using edge rails. form_tag verifications_path(@user), :method => :post do verifications_path(@user) returns a string like "/users/3/ verifications". That eventually gets sent to url_for, which expects a hash. And then it blows up. It''s especially disconcerting since the documentation shows form_tag as
2007 Dec 03
1
undefined methods page_count
I''m getting "undefined method `page_count'' for #<Array:0xb7073e1c>" when I tried to run my rails application after installing will_paginate. Details are as below: undefined method `page_count'' for #<Array:0xb7073e1c> Extracted source (around line #7): 4: <%= a.text%> 5: <% end %> 6: 7: <%= will_paginate @announcements,
2009 Jan 07
2
Error message
I have this app where people can build a profile full of various kinds of data. The first page that they see when they create their profile is a page named ''new''. If you add an id number for the company you work for - one that is already know by the user - it automaticaly fills in your company address information for you. Everything works fine, but I just happen to be looking at
2007 Jul 19
7
NoMethodError in partial driving me mad
Hello, i simplified have a news model, a news category model and a news controller. my _news.rhtml partial renders a single news entry. in my controller there are the actions show and show_category. if the "show" action is called, a single news item is rendered through my partial with no errors. if the "show_category" action is called, i get a NoMethodError while displaying
2009 Sep 29
5
NoMethodError in Stories#show
I''m a Rails newbie and am working my way through Simply Rails 2 by Patrick Lenz. Have run into a problem on page 207 of the book; this is the error I run into when I fire up my server and open up httpL//localhost:3000/ stories/new I have posted the error message and trace below. Thanks in advance for your help.
2006 Dec 08
2
UJS plugin incompatible with RSpec?
Hi all, Anyone using UJS with RSpec? I have the following view spec: ---- edit_spec.rb context "accounts/edit" do fixtures :users setup do assigns[:user] = users(:consumer) end specify "should display the user info to edit" do render ''/accounts/edit'' end end ---- end that causes this exception: ---- exception ActionView::TemplateError
2011 May 14
0
Undefined method `has_attached_file' with paperclip 2.3.8 gem for Rails 2 using Ruby 1.8.7
Hello, I am trying to use the paperclip plugin in my rails app to upload images for posts. I am using Rails 2.0.2 and ruby 1.8.7 on Ubuntu 10.04 os for project specific purposes. I am referring to the following tutorials for this :- 1. http://railscasts.com/episodes/134-paperclip?view=comments 2. http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails.html I did a git clone on the
2007 Jan 11
6
nil object while the required parameter are in the request
I''m having an application as follows. I have all the parameters for as object appended in the url. And there is an action in the controller like this def newlet render :layout=> false @product = Product.new if request.get? @product.title= params[:title] @product.description = params[:description] @product.primary_link = params[:primary_link]