similar to: undefined method `first''

Displaying 20 results from an estimated 100000 matches similar to: "undefined method `first''"

2009 Sep 10
1
undefined method `protect_against_forgery?'
When I use plugin ''railstree'' (http://www.hashcode.eti.br/?p=91) as following code: node = Node.new :label => menu_item.name, :link_to_remote => { :base => self, :update => "container", :url => {
2011 Jul 23
0
Rendering of Javascript updates with Rails > 2.1
Hey, i am currently upgrading a Rails 2.1 app to 2.3 to benefit from Rails engines. The app requires rendering javascript updates to strings, which does not work with 2.3 anymore: data = ActionView::Base.new(Rails::Configuration.new.view_path).render(:update) do |page| page["div[id=''foo'']"].removeClass("bar") end whihc results in an error because the
2006 Jun 07
2
How to send post data with link_to_remote?
Hi, I''m trying to send a post body with my link_to_remote call. Prototype supports the ''postBody'' option, but I can''t seem to get link_to_remote to set that. Here''s what I''m trying: link_to_remote ''move up'', :url => { :controller => ''upload'', :action => ''position_ajax'', :id
2006 Mar 12
2
Strange error: undefined method `rewrite''
Hi, when I generate a new rails project with a simple scaffolded controller, I get a strange error message, whenever it tries to call the url_for method, for example: ,---- | undefined method `rewrite'' for #<Url:0xb7675e64> | | Extracted source (around line #7): | | 4: </p> | 5: <% end %> | 6: | 7: <%= link_to ''Edit'', :action =>
2006 Jun 28
9
Scaffold Issue with Postgres
Hi guys, I''ve been able to successfully install the postgres adapter for a remote database machine to get rails up. My machine is running on Fedora 2. Rails version 1.1.2. Is my yml config correct? I am getting this error when I execute script/generate scaffold service_contents content : exists app/controllers/ exists app/helpers/ create app/views/spiel exists
2007 Oct 23
2
to_json inconsistency?
Hello, ActiveSupport::JSON::Variable.to_json is the only to_json without an "options" parameter. Is this intended? For example, this code in a .rjs page[@user.dom_id].visual_effect :drop_out, :afterFinish => ActiveSupport::JSON::Variable.new("foo") fails with ActionView::TemplateError: wrong number of arguments (1 for 0) On line #7 of
2007 Aug 12
0
Newbie: AJAX not working - Undefined Method error
Hello I have included prototype in my Applications rhtml file <head> <%= javascript_include_tag "prototype" %> <title>FLYPRO </title> <%= stylesheet_link_tag ''flypro'' %> </head> I call link_to_remote in a page as follows <div id="flypro-list"> </div> <%= link_to_remote("Do
2008 Jul 23
0
undefined method `first' for :users:Symbol
Hello, I am trying to move an existing fully functional Rails application from my laptop (Running Leopard) to my Desktop (Running Debian). I created a new Rails application on the Debian desktop and installed the restful_authentication plugin. I also changed the routes.db file to include maps for users and sessions. Now, when I try to start the WeBrick server, I get the following error: =>
2007 Sep 20
1
undefined method `request' for "products":String ?
Since updated edge yesturday i have had a series of errors related to undefinded methods for "products":String. I do have these controllers namespaced. ==== Errors example 1: undefined method `request'' for "products":String Extracted source (around line #2): view: <tbody> <%= render :partial => ''admin/products/product'',
2007 Apr 07
1
Undefined Method 'rewrite' when calling link_to
Whenever I try to pass an options hash to the link_to method (or url_for, or button_to) I get this error: undefined method `rewrite'' for []:ActionController::Routing::PathSegment::Result The trace ends with /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:522:in `url_for''
2008 May 13
0
Problem geting web interface to work
Hi, i have installed CruiseControlRB 1.3.0. With no project added the web interface at localhost:3333 looks find. I have successfully added one of my projects (batch file which builds some c++ code) which is also building fine. But the web interface is no more working - i get the following message "Errno::EINVAL in Projects#index". I have attached a log (run with --trace) which
2009 Jul 13
3
undefined method error from atom builder
I have a simple controller that takes a request, looks up some data and then returns the results as either HTML or Atom. The HTML response works fine, but the Atom Builder is blowing up with an undefined method error that I can''t figure out. It seems to be failing when the ActiveRecord instance is passed to the ''entry'' method and it tries to build the URL via the
2009 May 22
1
rails 2.3.2, active scaffold, nested, ActionView::TemplateError (undefined method `format_column' for #<ActionView::Base:
Before I dig in any further (since I have no idea where to go from here...) Has anyone been succcessful with 2.3.2, AS, and nested scaffolds? I have the latest of AS and the render_component plugin via % script/plugin install --force git://github.com/lackac/render_component.git -r rails-edge I have an AS user_controller: active_scaffold :user do |config| ...
2011 Mar 18
1
undefined local variable or method `calendar_date_select_includes' for #<ActionView::Base:0x7bfd920>
Here''s what I did: 1. gem install calendar_date_select 2. Then in my environment.rb I put: config.gem "calendar_date_select" 3. And in my template file: <%= javascript_include_tag "prototype" %> <%= calendar_date_select_includes %> But still an error posts like this : undefined local variable or method `calendar_date_select_includes'' for
2010 Sep 03
1
Action Controller Error: undefined local variable or method `current_user'
Newbie learning Rails. I''m currently on Chp9 here: http://railstutorial.org/chapters/sign-in-sign-out#top At the end of the tutorial, rails is erroring (see below). being new to Rails and after having checked the tutorial... How do you resolve this kind of error. It''s saying current_user is not defined, and it is supposed to be defined with/Sites/sample_app/app/helpers/
2008 Dec 20
3
undefined method `stories_path'
Hi, I recieve error "undefined method `stories_path'' for #<ActionView::Base:0x995b4ac>" when going to the view via site.com/stories/new The model is setup correctly, I can retrieve data from the db fine. I think it might be related to the helper but I have no idea where to start. It seems to think its failing on the first line of the view, i belive on the
2006 May 18
3
How to call controller from a div
Hi guys, it''s me again, Just wanted to ask, what technique can you use to call a def inside your controller while clicking on a div? thanks, Bing -- Posted via http://www.ruby-forum.com/.
2010 Oct 11
0
undefined method `includes_values' for :conditions:Symbol
Rails 3 / Ruby 1.9.2 Over the weekend I saw the "undefined method `includes_values'' for :conditions:Symbol" error for the 1st time while working with AAF. http://j-k.lighthouseapp.com/projects/45560-acts-as-ferret/tickets/176-aaf-051-undefined-method-includes_values-for-conditionssymbol#ticket-176-4 Anyway, i fixed the query and moved on. Today I hit the error again but I
2008 Jul 23
0
Link_to_remote object missing
Hello, I''m in troubles trying to use ''link_to_remote'' on Rails 2.1. Having this page: <h4>Editing project</h4> <% form_for(:project, :url => project_path(@project), :html => { :method => :put }) do |f| %> <p> Name <%= f.text_field :name %> Date <%= calendar_date_select :project, :target_date, :time =>
2013 Sep 17
0
11.5.1 : fedora 19 rpms : lots of undefined symbols
So starting up asterisk-11.5.1-2.fc19.x86_64.rpm I get: [Sep 17 21:09:07] WARNING[8606]: loader.c:423 load_dynamic_module: Error loading module 'chan_mgcp.so': /usr/lib64/asterisk/modules/chan_mgcp.so: undefined symbol: ast_pktccops_gate_alloc [Sep 17 21:09:07] WARNING[8606]: loader.c:423 load_dynamic_module: Error loading module 'chan_iax2.so':