Displaying 20 results from an estimated 10000 matches similar to: "NoMethodError in Stories#show"
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
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
Hi all, I am trying to reproduce rails 3.2 behaviour with fields_for and
nested attributes.
class ControllerAction < ActiveRecord::Base
has_many :interactions, dependent: :destroy
has_many :roles, through: :interactions
scope :controllers, lambda {|name| where("controller_name_id = ?",
name)}
scope :actions, lambda {|name| where("action_name_id =
2006 Aug 04
8
Unable to follow basic RoR tutorial (Win32)
I have just set up RoR to find out for myself if this tool is stable
enough to actually be used yet.
Anyhow, I started by going to the RubyOnRails website and following the
instructions to install the platform on my Windows 2000 PC.
"Get Ruby on Rails in no time"
"We recommend Ruby 1.8.4 for use with Rails."
So... I downloaded 1.8.4 and installed:
C:\>ruby -v
ruby
2006 Jul 12
0
Strange error
Has anyone ever experience this error? I''m not sure where to trace it
back to.
Showing
usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/templates/rescues/_request_and_response.rhtml
where line #40 raised:
wrong number of arguments (1 for 0)
Extracted source (around line #40):
37: <p><b>Parameters</b>: <%=h request_dump ==
2008 Jan 24
1
NoMethodError (undefined method `to_sym' for {"6"=>"1"}:Hash
I''ve got a search form that was working on rails 1.2.6, but since
upgrading to 2.0.2, I''m getting this error when I post my form. Here''s
the full error:
Processing SearchController#results (for 24.173.26.226 at 2008-01-24
14:51:23) [GET]
Session ID:
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 Dec 24
4
NoMethodError
Hi,
In a few words, can someone explain to me the NoMethodError. Googling
for answers will get you to something but a direct answer from experts
will give you something.
NoMethodError in Book#new
Showing app/views/book/new.html.erb where line #4 raised:
undefined method `title'' for #<Book id: nil, created_at: nil,
updated_at: nil>
Extracted source (around line #4):
1:
2007 Nov 20
3
How to test views with Nested Resources and Partials
Hi everyone,
I am relatively new to rspec and I am running into a wall in testing my
views. I have a RESTful resource Contracts with a nested resource of
Line_items.
I am trying to figure out how to test the "edit" form of the Line_items.
What complicates this is the nested routing and how to account for it,
and that there is a partial form (_form.haml) that both the edit.haml
and
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
2009 Sep 30
1
Can't connect with MySQL database
I just installed MySQL and its drivers on a Mac OS X Leopard. When I
issued my rails command to build a new app, then issued the script/
server command and connected to my localhost:3000 in the browser, I
saw the following problem with MySQL.
I changed/updated the PATH in nano, and it can see MySQL fine. So I
really don''t understand the problem.
Can you tell me what I need to do?
Thank
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
2008 Jun 30
1
Help with form_for
Hello, I had an app running on RoR 1.1, now I''m migrating it to 2.1.
In a view I have:
<div id="user_management">
<fieldset>
<legend>Please log in</legend>
<% form_for(:user, :url => sessions_path) do |f| %>
<p>Username: <span class="notice"><%= flash[:notice]%></
span></p>
2006 May 30
0
Problems when applying search to filter rows.
Hello,
I am trying to create in the main Layout of the application fields of
selection of fields of the model, and other to insert its value. Next I put
a search button, with the idea to leak by the search in the view of the
model where it executes this button. I have generated the views with
ajaxscaffold.
I do not know if what I try to do it does of this form or another one.
My code is the
2010 Mar 20
0
Problem with videos on heroku
Hi,
I have recently moved my RoR app on the Heroku platform, and almost
everything works fine apart from the videos. It works fine when my app
runs in local but not on heroku. This is the error log I''m getting, if
anyone knows where it can be coming from:
Processing VideosController#new (for IP at 2010-03-20 04:32:09) [GET]
Session ID: 6abecf60c3369d7c7029e366bb801e08
Parameters:
2007 May 30
2
ActionView::TemplateError
Hi,
I have a strange problem that only occurs on the production server.
I''ve been banging my head for hours trying to figure it out with no
success. Below is a copy of the error from the production log.
ActionView::TemplateError (Expected /www/rails_apps/scanlan/current/
public/../config/../app/models/image.rb to define Image) on line #6 of
app/views/admin/design/_record.rhtml:
3:
2004 Nov 20
0
Stack level too deep on Cygwin and on Debian / Colinux with 0.5.0 - 0.8.5 Beta gems
Hi,
as it is not possible for me to use a sensible development environment
to start with I have to use emulations. I use Cygwin on windows and also
Colinux. (Colinux is really amazing cause it lets you run actual linux
binaries und Windows.) So here is my problem, which by the way exists
since Rails 0.5.0 I think. It was the reason I tried Colinux in the
first place, cause the error first
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
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]
2005 Jun 13
3
validations not working with collection population droplists
I have an ADD form with foreign key field values selectable via select
list ( collection_select (...)).
When I add validates_presence_of :someotherfield to my model for error
trapping, I get the following error for each droplist:
NoMethodError in Reviews#create_curriculum
Showing /reviews/_form.rhtml where line #16 raised:
undefined method `inject'' for nil:NilClass
Extracted source
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