Displaying 20 results from an estimated 3000 matches similar to: "nil object while the required parameter are in the request"
2007 Jan 12
9
Nil object in E1 capture the order
I''m following the depot application in the rails bible Agile Web
Development with Rails. In interation E1
NoMethodError in Admin#checkout
Showing app/views/admin/checkout.rhtml where line #12 raised:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.include?
Extracted source (around line #12):
2007 Jan 15
5
ActionController::UnknownAction (No action responded to xxx)
I have a new method defined in a existing controller.
All the methods I called in these are workable.
But somehow the new method is not recognizable.
------------------new method I
added--------------------------------------------
def push
# if fair
begin
@product = Product.find(params[:id])
rescue
logger.error("Attempt to access invalid product #{params[:id]}")
2007 Jan 29
6
RJS problem
Hi,
I''m implementing a "digg-like" page, that once you digg. The score for
each item will dynamically reflect your current action +1 .
I am not sure what''s
In the controller I have an action responsible for increase of the
score.It has a corresponding rjs in view.
--------------------------------------------------------------------------------
def arouse
2006 Nov 23
1
Select Tag not working in 1.2rc1
I''m getting the following error message under rc1:
ActionView::TemplateError (wrong number of arguments (1 for 0)) on line
#54 of app/views/admin/admin_index.rhtml:
In my view (* = Line 54):
<%=start_form_tag(:action=>"sales_by_author")%>
*<%=select("author","id",@authors.collect {|a| [a.name,a.id]})%>
<%=submit_tag("Go")%>
2007 Feb 12
1
Invalid char problem
Has the problem with corrupted .rhtmls (invalid characters) been solved
so far?
I would like to use ferret and acts_as_ferret on Windows XP. I have
installed 0.10.9 (mswin32) which still seems to have the problem.
I am receiving error messages like:
compile error
C:/INSTAN~1.4P1/INSTAN~1/rails_apps/travelogue/config/../app/views/article_editor/_header_read.rhtml:2:
parse error, unexpected
2006 May 25
1
AppMailer and McCray''s theme generator
Hi,
I am using Matt McCray''s theme generator.
http://rubyforge.org/projects/theme-generator/
Everything works fine, but rendering an action in a controller using
the AppMailer raises this:
undefined method `current_theme'' for #<AppMailer:0x39df950>
Is there someone who could help me ?
Thanks !
Mickael.
Traces:
2006 Aug 13
5
Newbie question: scaffold not working
I went through a tutorial at
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1 to get
started with RoR. I really like the idea of the scaffold construct, but
I can''t seem to get it to work the way it was described in the tutorial.
I''ve got a mysql database that is properly configured, and a table
called ''quotes'' with a column called
2006 Sep 07
7
invalid characters with win32
I''m running on webbrick 1.3.1, winxp, ruby 1.8.4, rails 1.1.6,
ferret-0.10.2-mswin32
Used gem install ferret - didn''t report any errors.
When I do a
require ''ferret''
in any of my controllers actionview blows up with a
SyntaxError in Default#index
/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:307: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 :
2006 Jul 19
1
flickr.rb error
hi all,
i am trying to put flickr on my ruby app using the famous "Putting
flickr on Rails" tutorial...i followed all the steps what was given
there...but the followoing error always come...
Error Message:
NoMethodError in FlickrController#search
private method `gsub'' called for 24:FixnumRAILS_ROOT:
C:/rails/flickr/config/..
Application Trace | Framework Trace | Full
2006 Oct 16
3
Strange ActiveRecord error popping up
Hello guys, I''m developing a new app in Rails, and every now and then
I get an ActiveRecord error, I cannot reproduce exactly what triggers
it, hope you can help me, or give me tips on debugging this kind of
stuff. This time I got the error reporting page, but normally I would
just see the 500.html page, with no info about what went wrong.
This is the error (it''s the complete
2006 Sep 12
1
Ferret on Windows?
I am trying to use SVN HEAD of Acts_as_ferret, and I have ferret
0.10.4installed from the windows Gem.
Unfortuanantly, whenever I i let act_as_ferrets init.rb file require ferret,
my app blows up, with weird "Invalid char" errors. I have pasted the page
below. If I comment out the require ferret, the page loads. Of course,
act_as_ferret does blow up.
My unit tests do work fine
2006 Nov 24
0
Strange "camelize" error when running fresh rails install on Hoary
Hi everyone,
Just wondering if anyone had seen this before. I did a simple install
following Paul Goscicki''s tutorial
(http://paulgoscicki.com/archives/2005/09/ruby-on-rails-on-ubuntu/) and
I get this message when I type "rails test" from the command line.(I''m
running Ubuntu 5.04 Hoary)
could anyone point me in the right direction? thanks.
--max
2007 Apr 17
1
undefined method `each'' for nil:NilClass with Ferret search
Hi All:
For certain key terms I always get this error; I had to rebuild the
indexes then it works for a while then again it is gone.
here is the message
ActionView::TemplateError (undefined method `each'' for nil:NilClass) on
line #4
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:316:in
`compile_and_render_template''
2008 Jun 25
4
Error with mongrel_rails start
When I make an empty Rails web application, and go through the steps
to create/include a database, and scaffold, mongrel_rails start (or
ruby script/server) works just fine. However, I attempted this with a
pre-existing web app and I got some errors.
First, I gathered the app''s folder (checked the contents, it has all
the folders plus one extra: components) and placed it under ruby/
2006 Nov 04
0
rake db:migrate is semi-broken
Whenever I run rake db:migrate I get the following "error":
antrover:~/Sway/Projects/mi7/branches/sway_dev_mi7 dhoefler$ rake db:migrate
(in /Users/dhoefler/Sway/Projects/mi7/branches/sway_dev_mi7)
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:334:
warning: `*'' interpreted as argument prefix
2009 Oct 08
0
autospec cannont find gems
I am trying to install rspec for rails and have the following gems
install
C:\INSTAN~3.0-W\rails_apps\katai>gem list --local
*** LOCAL GEMS ***
actionmailer (2.3.4, 2.0.2)
actionpack (2.3.4, 2.0.2)
activerecord (2.3.4, 2.0.2)
activeresource (2.3.4, 2.0.2)
activesupport (2.3.4, 2.0.2)
authlogic (2.1.2)
autotest-rails (4.1.0)
builder (2.1.2)
capistrano (2.5.9, 2.1.0)
cgi_multipart_eof_fix
2006 Mar 09
3
Need help PLEASE!!! - updating collection from form
Greetings!
I''m trying to update a set of records from the same model on one form. The AWD book gives an example on p.356 but I guess I''m not understanding it.
I can see from the error message I''m getting that the controller is receiving a hash of hashes back from the view, and that it''s got the stuff I expected (two values per record that was sent to the
2006 Jan 12
10
uninitialized constant error
Hi Everyone,
I''m a newbie to Rails, and I just finished going through the cookbook
tutorial. I''m now trying to build my own application, and I''m trying to
add more inputs to the edit view to modify data in other tables. Below
is the controller code where I am having trouble. PartsLocation is
another table (like Part) in the database, and that is the line where
2007 Jul 04
2
problems after gem update
Hi, I had ferret working wonderfully but i am regretting doing a gem
update today.
I had alot of trouble first installing it and was really happy to have
it working. The upgrade was from 0.3.1 to 0.4.0.
The problem is;
in the rails console,
>> @results = Book.find_by_contents("peter pan")
=> #<ActsAsFerret::SearchResults:0x487040c @total_hits=0, @results=[]>
Its indexing