[Rails] NoMethodError (undefined method `sismember' for nil:NilClass)…Trying to deploy on heroku

2015-05-17 Thread Iacovos Karayiannis
I get the following error: 2015-05-17T17:25:40.349230+00:00 app[web.1]: Started GET "/movies/1" for 160.9.0.153 at 2015-05-17 17:25:40 + 2015-05-17T17:25:40.423697+00:00 app[web.1]: Completed 500 Internal Server Error in 67ms 2015-05-17T17:25:40.355931+00:00 app[web.1]: Processing by MoviesCon

Re: [Rails] NoMethodError: undefined method `password_digest=

2014-12-01 Thread Roelof Wobben
Op maandag 1 december 2014 18:12:56 UTC+1 schreef Colin Law: > > On 1 December 2014 at 17:04, Roelof Wobben > wrote: > > > > > > Op maandag 1 december 2014 17:39:01 UTC+1 schreef Colin Law: > >> > >> On 1 December 2014 at 16:20, Roelof Wobben wrote: > >> > > >> > > >> > Op maandag 1 dec

Re: [Rails] NoMethodError: undefined method `password_digest=

2014-12-01 Thread Colin Law
On 1 December 2014 at 17:04, Roelof Wobben wrote: > > > Op maandag 1 december 2014 17:39:01 UTC+1 schreef Colin Law: >> >> On 1 December 2014 at 16:20, Roelof Wobben wrote: >> > >> > >> > Op maandag 1 december 2014 17:15:06 UTC+1 schreef Colin Law: >> >> >> >> On 1 December 2014 at 15:51, Roelof

Re: [Rails] NoMethodError: undefined method `password_digest=

2014-12-01 Thread Roelof Wobben
Op maandag 1 december 2014 17:39:01 UTC+1 schreef Colin Law: > > On 1 December 2014 at 16:20, Roelof Wobben > wrote: > > > > > > Op maandag 1 december 2014 17:15:06 UTC+1 schreef Colin Law: > >> > >> On 1 December 2014 at 15:51, Roelof Wobben wrote: > >> > Yep, I did all the steps. > >>

Re: [Rails] NoMethodError: undefined method `password_digest=

2014-12-01 Thread Colin Law
On 1 December 2014 at 16:20, Roelof Wobben wrote: > > > Op maandag 1 december 2014 17:15:06 UTC+1 schreef Colin Law: >> >> On 1 December 2014 at 15:51, Roelof Wobben wrote: >> > Yep, I did all the steps. >> >> Though have not responded to my request that you do not top post. :( >> >> So your Gemf

Re: [Rails] NoMethodError: undefined method `password_digest=

2014-12-01 Thread Roelof Wobben
Op maandag 1 december 2014 17:15:06 UTC+1 schreef Colin Law: > > On 1 December 2014 at 15:51, Roelof Wobben > wrote: > > Yep, I did all the steps. > > Though have not responded to my request that you do not top post. :( > > So your Gemfile is exactly the same as in the tutorial? If you think

Re: [Rails] NoMethodError: undefined method `password_digest=

2014-12-01 Thread Colin Law
On 1 December 2014 at 15:51, Roelof Wobben wrote: > Yep, I did all the steps. Though have not responded to my request that you do not top post. :( So your Gemfile is exactly the same as in the tutorial? If you think so then please post it here, along with Gemfile.lock Colin. > > Here is my sc

Re: [Rails] NoMethodError: undefined method `password_digest=

2014-12-01 Thread Roelof Wobben
Yep, I did all the steps. Here is my scheme.rb file : # encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this s

Re: [Rails] NoMethodError: undefined method `password_digest=

2014-12-01 Thread Colin Law
On 1 December 2014 at 15:44, Roelof Wobben wrote: > I have exactly what Hartl says. > > He says to change my gem file to this : > > source 'https://rubygems.org' > > gem 'rails','4.2.0.rc1' > gem 'bcrypt', '3.1.7' Did you run bundle install after that? It does not l

Re: [Rails] NoMethodError: undefined method `password_digest=

2014-12-01 Thread Colin Law
On 1 December 2014 at 15:38, Walter Lee Davis wrote: > > On Dec 1, 2014, at 10:32 AM, Roelof Wobben wrote: > >> Hello, >> >> I did all the steps from the Hartl tutorial but as soon as I do this : >> >> User.create(name: "Michael Hartl", email: "mha...@example.com",password: >> "foobar", passwo

Re: [Rails] NoMethodError: undefined method `password_digest=

2014-12-01 Thread Walter Lee Davis
It may have been renamed since the example I looked at. I haven't used 4.2 yet. (Okay, just checked, and it is the way you describe -- same version, even -- in 4.1. Sorry for the noise.) Walter On Dec 1, 2014, at 10:44 AM, Roelof Wobben wrote: > I have exactly what Hartl says. > > He says to

Re: [Rails] NoMethodError: undefined method `password_digest=

2014-12-01 Thread Roelof Wobben
I have exactly what Hartl says. He says to change my gem file to this : source 'https://rubygems.org' gem 'rails','4.2.0.rc1'gem 'bcrypt', '3.1.7' And there is no mention about bcrypt-rubt Roelof Op maandag 1 december 2014 16:40:41 UTC+1 schreef Walter Lee D

Re: [Rails] NoMethodError: undefined method `password_digest=

2014-12-01 Thread Walter Lee Davis
On Dec 1, 2014, at 10:32 AM, Roelof Wobben wrote: > Hello, > > I did all the steps from the Hartl tutorial but as soon as I do this : > > User.create(name: "Michael Hartl", email: "mha...@example.com",password: > "foobar", password_confirmation: "foobar") > > on the rails console, I see th

[Rails] NoMethodError: undefined method `password_digest=

2014-12-01 Thread Roelof Wobben
Hello, I did all the steps from the Hartl tutorial but as soon as I do this : User.create(name: "Michael Hartl", email: "mha...@example.com",password: "foobar", password_confirmation: "foobar") on the rails console, I see this error message : NoMethodError: undefined method `password_dige

Re: [Rails] NoMethodError in Websocket controller

2014-09-08 Thread Jason Fleetwood-Boldt
On Sep 8, 2014, at 10:05 AM, Eugene Badin wrote: >> Did you put a debugger above line 97 and try to figure out why > controller_store["gomoku_guess#{connection_store[:game].id}"] appears to > be nil? > > I would be happy if you tell me how do I do that instructions on how to debug are here:

Re: [Rails] NoMethodError in Websocket controller

2014-09-08 Thread Jason Fleetwood-Boldt
Looks to me like the variable matrix is nil. Looks like it is called form line 97. I'm not familiar enough with controller_store or connection_store (are those from WebSockets gem?) to know what to tell you. Did you put a debugger above line 97 and try to figure out why controller_store["gom

[Rails] NoMethodError in Websocket controller

2014-09-08 Thread Eugene Badin
Here is my controller https://gist.github.com/budkin/f02a5baed02e71a4f94f on line 182 it throws an error >E [2014-09-08 18:36:07.171] [[31mDispatcher[0m] NoMethodError: undefined method `row_vectors' for nil:NilClass >E [2014-09-08 18:36:07.171] [[31mDispatcher[0m] /home/budkin/gamestown/app/con

Re: [Rails] NoMethodError in Devise::Sessions#new

2014-07-22 Thread tamouse pontiki
On Mon, Jul 21, 2014 at 7:52 AM, Walter Lee Davis wrote: > On Jul 20, 2014, at 10:04 PM, huon sothon wrote: > > i am using devise for authentication.it is work very well .but when i > select data (category or sub_category) from database in > app/views/layouts/application.html.erb and then i click

Re: [Rails] NoMethodError in Devise::Sessions#new

2014-07-21 Thread Walter Lee Davis
On Jul 20, 2014, at 10:04 PM, huon sothon wrote: > Hi everybody > i am new developer in ROR. now i have one question to ask? > i am using devise for authentication.it is work very well .but when i select > data (category or sub_category) from database in > app/views/layouts/application.html.er

[Rails] NoMethodError in Devise::Sessions#new

2014-07-21 Thread huon sothon
Hi everybody i am new developer in ROR. now i have one question to ask? i am using devise for authentication.it is work very well .but when i select data (category or sub_category) from database in app/views/layouts/application.html.erb and then i click sign_in it show errors as shown below:

Re: [Rails] NoMethodError (undefined method `length=' for #):

2013-03-29 Thread maciej . mietek
This is because we have a whitelabel feature in our app, and therefore most columns and tables are labelled to. The label "app" simply means that it loads all the data from our main app. W dniu piątek, 29 marca 2013 11:48:56 UTC+1 użytkownik Colin Law napisał: > > On 29 March 2013 09:57, > wro

Re: [Rails] NoMethodError (undefined method `length=' for #):

2013-03-29 Thread Colin Law
On 29 March 2013 09:57, wrote: > Hey, thanks for the answer. > > As for the Book.rb - yes, it's a typing error. > > When I run Book.first.length in the rails console, I get: > > 1.9.3-p327 :001 > Book.first.length > Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."label" = > 'app

Re: [Rails] NoMethodError (undefined method `length=' for #):

2013-03-29 Thread maciej . mietek
Hey, thanks for the answer. As for the Book.rb - yes, it's a typing error. When I run Book.first.length in the rails console, I get: 1.9.3-p327 :001 > Book.first.length Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."label" = 'app LIMIT 1 => nil And yes, I did run the migra

Re: [Rails] NoMethodError (undefined method `length=' for #):

2013-03-28 Thread Colin Law
On 28 March 2013 13:07, wrote: > Hey > > I have a problem with nomethoderror and have no idea how to solve it. > > In logs: > > NoMethodError (undefined method `length=' for #): > 2013-03-28T12:38:35+00:00 app[web.2]: app/models/engine/book.rb:13:in > `block in find_or_create_by_guide' > 2013-0

[Rails] NoMethodError (undefined method `length=' for #):

2013-03-28 Thread maciej . mietek
Hey I have a problem with nomethoderror and have no idea how to solve it. In logs: NoMethodError (undefined method `length=' for #): 2013-03-28T12:38:35+00:00 app[web.2]: app/models/engine/book.rb:13:in `block in find_or_create_by_guide' 2013-03-28T12:38:35+00:00 app[web.2]: app/models/eng

Re: [Rails] NoMethodError (undefined method `service_options' for nil:NilClass)

2012-10-17 Thread Colin Law
On 17 October 2012 12:14, Nirav wrote: > hi i am using rails 2.3.4 and i am facing "no method error" > > there is possibility to not find method but my question is - is there > possibility to error occurred because of empty table? or error in another > controller or helper? > > error trace: > > Pr

[Rails] NoMethodError (undefined method `service_options' for nil:NilClass)

2012-10-17 Thread Nirav
hi i am using rails 2.3.4 and i am facing "no method error" there is possibility to not find method but my question is - is there possibility to error occurred because of empty table? or error in another controller or helper? error trace: Processing QuoteRequestsController#create (for 127.0.0.

Re: [Rails] NoMethodError with rake db:migrate

2012-09-19 Thread Colin Law
On 18 September 2012 04:00, jose ramirez wrote: > Hi! First of all, this is my first application on Rails, and i'm stuck at a > migration. i created a demo app (the demo_app from michael hartl's tutorial) > as usual: rails new demo_app, rails generate scaffold User name:string > email:string, and

[Rails] NoMethodError with rake db:migrate

2012-09-18 Thread jose ramirez
Hi! First of all, this is my first application on Rails, and i'm stuck at a migration. i created a demo app (the demo_app from michael hartl's tutorial) as usual: rails new demo_app, rails generate scaffold User name:string email:string, and when i do rake db:migrate, this stack appears: rake d

[Rails] NoMethodError: undefined method `accept' for nil:NilClass

2012-08-13 Thread ZeroModulus
Here's the trace, NoMethodError: undefined method `accept' for nil:NilClass from /Users/blaine/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `to_sql' from /Users/blaine/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.

[Rails] NoMethodError: undefined method `scoped' for Model:Class

2012-06-04 Thread DHAMODHARAN N
Hi Guys, I have model called CardAuthorization its perfectly working in development and production environments but not working in test environment, other models also working fine. class CardAuthorization < ActiveRecord::Base belongs_to :line_item_collection belongs_to :user end *Error:*

Re: [Rails] NoMethodError when using any?

2012-05-31 Thread Everaldo Gomes
Nice, I forgot about that too... On Thu, May 31, 2012 at 2:26 PM, Mohamad El-Husseini wrote: > I forgot to mention that where() returns an array where as find_by_foo > returns a single object unless there are multiple objects... > > - > > Another way would be to change: > > roles = user.roles

Re: [Rails] NoMethodError when using any?

2012-05-31 Thread Mohamad El-Husseini
I forgot to mention that where() returns an array where as find_by_foo returns a single object unless there are multiple objects... - Another way would be to change: roles = user.roles.find_by_account_id(account.id) to roles = user.roles.where(account_id: account.id) On Thursday, May 31,

Re: [Rails] NoMethodError when using any?

2012-05-31 Thread Mohamad El-Husseini
Another way would be to change: roles = user.roles.find_by_account_id(account.id) to roles = user.roles.where(account_id: account.id) On Thursday, May 31, 2012 1:22:42 PM UTC-4, Everaldo Gomes wrote: > > Hi! > > There are many ways to solve this problem. > > One sugestion, maybe not the bette

Re: [Rails] NoMethodError when using any?

2012-05-31 Thread Everaldo Gomes
Hi! There are many ways to solve this problem. One sugestion, maybe not the better: you can use the method kind_of? to see if roles is a Array. roles.kind_of? Array (will return true) Then, you could build your logic upon this. Best Regards, Everaldo On Thu, May 31, 2012 at 2:04 PM, Mohamad E

[Rails] NoMethodError when using any?

2012-05-31 Thread Mohamad El-Husseini
I'm trying to use CanCan to an account scoped application. I wrote this method in my ability class: roles = user.roles.find_by_account_id(account.id) if roles.any? { |role| role.type == "Ownership" } can :edit, Account else can :read, :all end The trouble is, "any?" w

Re: [Rails] NoMethodError

2012-03-12 Thread Michael Pavling
On 9 March 2012 19:52, AndyLikesRuby wrote: > I am getting this error message when I try to hit a certain URL: > > http://localhost:3000/captionfiles > > NoMethodError in CaptionfilesController#index > undefined method `all' for Captionfile:Class > app/controllers/captionfiles_controller.rb:5:in `

Re: [Rails] NoMethodError

2012-03-11 Thread Colin Law
On 9 March 2012 19:52, AndyLikesRuby wrote: > Hello fellow Ruby enthusiasts! > > Although I've been using Ruby for some time, I just started using > RoR.  I'm experiencing an error that I'm having trouble resolving and > was hoping to find some help. > > I am getting this error message when I try

[Rails] NoMethodError

2012-03-11 Thread AndyLikesRuby
Hello fellow Ruby enthusiasts! Although I've been using Ruby for some time, I just started using RoR. I'm experiencing an error that I'm having trouble resolving and was hoping to find some help. I am getting this error message when I try to hit a certain URL: http://localhost:3000/captionfiles

Re: [Rails] NoMethodError (undefined method `gsub' for #) when gsub was never used!

2012-03-05 Thread Myth17
I was incorrectly using instance variables which I replaced with session variables. However the problem persists. On Monday, March 5, 2012 7:13:38 PM UTC+5:30, Colin Law wrote: > > On 5 March 2012 13:23, Myth17 wrote: > > I am presented with this error in my code, the line number happens to be

Re: [Rails] NoMethodError (undefined method `gsub' for #) when gsub was never used!

2012-03-05 Thread Myth17
I used the puts with 'instance'.class to check the types and they match as well. On Monday, March 5, 2012 7:13:38 PM UTC+5:30, Colin Law wrote: > > On 5 March 2012 13:23, Myth17 wrote: > > I am presented with this error in my code, the line number happens to be > --> > > > > Filestore.create(:

Re: [Rails] NoMethodError (undefined method `gsub' for #) when gsub was never used!

2012-03-05 Thread Myth17
FileStore is my model name and I have a table too. On Monday, March 5, 2012 7:13:38 PM UTC+5:30, Colin Law wrote: > > On 5 March 2012 13:23, Myth17 wrote: > > I am presented with this error in my code, the line number happens to be > --> > > > > Filestore.create(:filename => uploaded_file.origin

Re: [Rails] NoMethodError (undefined method `gsub' for #) when gsub was never used!

2012-03-05 Thread Colin Law
On 5 March 2012 13:23, Myth17 wrote: > I am presented with this error in my code, the line number happens to be --> > > Filestore.create(:filename => uploaded_file.original_filename , :fileblob => > uploaded_file.open, :bunch => @current_bunch ) It probably means you are passing a parameter of th

[Rails] NoMethodError (undefined method `gsub' for #) when gsub was never used!

2012-03-05 Thread Myth17
I am presented with this error in my code, the line number happens to be --> Filestore.create(:filename => uploaded_file.original_filename , :fileblob => uploaded_file.open, :bunch => @current_bunch ) The code directly uses gsub nowehere, what could be the possible issue? -- You received this

Re: [Rails] NoMethodError in XXXXXXXXXController#create

2011-09-24 Thread Jim Ruther Nill
On Sat, Sep 24, 2011 at 8:56 PM, Tsolmon Narantsogt wrote: > Hello comrades , > > I got a error. I don't understand that exception. What happened ? > > You have a nil object when you didn't expect it! > You might have expected an instance of ActiveRecord::Base. > The error occurred while evaluatin

[Rails] NoMethodError in XXXXXXXXXController#create

2011-09-24 Thread Tsolmon Narantsogt
Hello comrades , I got a error. I don't understand that exception. What happened ? You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[] i written this code: if @personal_information.save Hamtr

[Rails] NoMethodError in Store#index

2011-08-02 Thread Vincent Mr
Thanks in advance I want to know how to solve No method errors Agile Rails 4th ed Great book But second time I get this type of error I would like to know how to troubleshoot and resolve Please see below thanks once again NoMethodError in Store#index Showing C:/rails/shop9/app/views/line_i

Re: [Rails] NoMethodError for innerText

2011-07-15 Thread Colin Law
On 15 July 2011 20:42, Chad W. wrote: > Hello, > > I'm new to all of this. I have a script that behaves rather erratically. > > I'm getting the following error... > >  1) Error: > test_capital_by_division(SampleTest): > NoMethodError: undefined method `innerText' for nil:NilClass Note the wording

[Rails] NoMethodError for innerText

2011-07-15 Thread Chad W.
Hello, I'm new to all of this. I have a script that behaves rather erratically. I'm getting the following error... 1) Error: test_capital_by_division(SampleTest): NoMethodError: undefined method `innerText' for nil:NilClass X:/SOM/Admin/Finance/Reporting/Cognos/QA/scripts/DEV/working/CAPTE

Re: [Rails] NoMethodError: undefined method `key?' for "product :ruby cart :one":String

2011-06-08 Thread Colin Law
On 8 June 2011 14:59, akkdio wrote: > Hi, > I am going through the Agile web development with rails 4th edition > and am getting this error.  It seems to be related to the fixtures (my > guess) and all the tests are failing.   Can someone point me in the > right direction to understand what I did

[Rails] NoMethodError: undefined method `key?' for "product :ruby cart :one":String

2011-06-08 Thread akkdio
Hi, I am going through the Agile web development with rails 4th edition and am getting this error. It seems to be related to the fixtures (my guess) and all the tests are failing. Can someone point me in the right direction to understand what I did wrong here?Here is the first failure in the

[Rails] NoMethodError (undefined method `serializable_record' for #

2011-05-19 Thread Lucky Nl
Hi , Am using rails 3 .I have added code in my controller --- la.map{|c| ActiveRecord::Base::Serializer.new(c).serializable_record --- But am getting below error

Re: [Rails] NoMethodError

2011-05-18 Thread Alex Katebi
Try the "rails console" command on your shell then type "x = Zombie.find(1).name" On Wed, May 18, 2011 at 11:22 PM, Ryan C. wrote: > Hi All, > > I'm working on a tutorial and am already stumped on the very first > question... I can't seem to figure it out.  Here are the details: > > > Objective

[Rails] NoMethodError

2011-05-18 Thread Ryan C.
Hi All, I'm working on a tutorial and am already stumped on the very first question... I can't seem to figure it out. Here are the details: Objective Find Zombie where id = 1 and store it in a variable Resources zombies id name graveyard 1 Ash Glen Haven Memorial Cemetary 2 Bob Chapel Hi

[Rails] NoMethodError: undefined method `acts_as_state_machine'

2011-05-16 Thread Dhayalan Karunakaran
Hello All, Am upgrading my rails app from rails 2.1.0 to 2.3.11, while login am facing bug for login am using code "self.current_user = User.authenticate(params[:login], params[:password])" Bug: "NoMethodError: undefined method `acts_as_state_machine' for #" Can anyone help me out. Thanks in

[Rails] NoMethodError in Book

2011-04-25 Thread amrit pal pathak
I got a following error. NoMethodError in Book#new Showing /home/amrit/boook/app/views/book/_form.html.erb where line #1 raised: undefined method `model_name' for NilClass:Class The content of _form.html.erb file are: <%= form_for(@post) do |f| %> <% if @post.errors.any? %> <%=

[Rails] NoMethodError in Book

2011-04-25 Thread amrit pal pathak
I got a following error. NoMethodError in Book#new Showing /home/amrit/boook/app/views/book/_form.html.erb where line #1 raised: undefined method `model_name' for NilClass:Class The content of _form.html.erb file are: <%= form_for(@post) do |f| %> <% if @post.errors.any? %> <%=

Re: [Rails] NoMethodError in Devise/registrations#new

2011-02-24 Thread Colin Law
2011/2/24 Vadim Antropov : > Hello, i need help. > Devise + custom action in DeviseRegistrationController + dynamic select. > > Manual: > http://pullmonkey.com/2008/3/30/dynamic-select-boxes-ruby-on-rails/ > > Error: > -- > NoMethodError i

[Rails] NoMethodError in Devise/registrations#new

2011-02-24 Thread Vadim Antropov
Hello, i need help. Devise + custom action in DeviseRegistrationController + dynamic select. Manual: http://pullmonkey.com/2008/3/30/dynamic-select-boxes-ruby-on-rails/ Error: -- NoMethodError in Devise/registrations#new Showing C:/proj

[Rails] NoMethodError

2011-01-20 Thread Simon M.
Hi,any ideas how to fix this error, im trying to create a users login.register. which i have called users1. Here is the error message i9n my view.Thanks NoMethodError in User1#index Showing app/views/user1/index.html.erb where line #6 raised: You have a nil object when you didn't expect it! You

[Rails] NoMethodError: undefined method `more_results' for #

2011-01-14 Thread Oguz Bilgic
I am trying to create rake task to import data from my old php application.But I can not connect to mysql database properly, when I run Old::User.all on rails console ,I get this error : NoMethodError: undefined method `more_results' for # from /Library/Ruby/Gems/1.8/gems/active

Re: [Rails] NoMethodError undefined method `password' for #

2010-12-13 Thread Philip Hallstrom
On Dec 13, 2010, at 3:46 PM, John Merlino wrote: > Hey all, > > I'm following the Authenticating Your Users Recipe in Rails recipes, > which is a bit outdated I know. > > It says run a migration: > > def self.up >create_table :users do |t| > t.column "username", :string > t.colu

[Rails] NoMethodError undefined method `password' for #

2010-12-13 Thread John Merlino
Hey all, I'm following the Authenticating Your Users Recipe in Rails recipes, which is a bit outdated I know. It says run a migration: def self.up create_table :users do |t| t.column "username", :string t.column "password_salt", :string t.column "password_hash", :string

[Rails] NoMethodError: `bytesize' for 200:Fixnum (with Rails-3.0.3)

2010-12-08 Thread Kaoru Kobo
Thanks to Rails developer team. I tried Rails3 along this guide: Ruby on Rails Guides: Getting Started with Rails http://edgeguides.rubyonrails.org/getting_started.html and I met the problem described as following. ...Any ideas? === Environment: === $ ruby -v ruby 1.8.7 (2010-

[Rails] NoMethodError

2010-11-25 Thread Juan Gomez
hey, I am making an appointments page. It is not associated with any other model. The model validations, migrations, controllers, views, and form structure are in place but for some reason i keep getting: NoMethodError in Appointments#new Showing /Users/juangomez/Documents/Aptana Studio 3 Worksp

Re: [Rails] NoMethodError

2010-10-01 Thread radhames brito
On Fri, Oct 1, 2010 at 12:58 PM, Pedro wrote: > Hi there! > Im new on ruby/rails, and im tying to run the rake task below but I > got an error. After I tested on script/console and I got the same > error. Could you helpe me, please? > > Thanks! > Pedro > > > > Rake Task: > > namespace :meuApp do

[Rails] NoMethodError

2010-10-01 Thread Pedro
Hi there! Im new on ruby/rails, and im tying to run the rake task below but I got an error. After I tested on script/console and I got the same error. Could you helpe me, please? Thanks! Pedro Rake Task: namespace :meuApp do desc 'Update geotable with longitude and latitude information'

[Rails] NoMethodError in ContainerformatsController#create

2010-09-15 Thread Amit Tomar
NoMethodError in ContainerformatsController#create undefined method `yuvstreams' for # hii all, i am getting this error i don't no what happened ,its working fine few days before but it not working this is code for create function @containerformat = Containerformat.new(params[:containe

[Rails] NoMethodError in User sessionsController#create

2010-09-09 Thread Ruby Rube
Having a frustrating go at authenticating a user, pretty sure it must have something to do with gem version conflicts, but I can't seem to find a solution that works. No matter what username & password that is entered into the login form I get the same error screen: NoMethodError in User sessions

Re: [Rails] NoMethodError: undefined method `force_encoding' for "Conten

2010-09-01 Thread Adam
On Wed, Sep 1, 2010 at 12:50 PM, Renato Isidio wrote: > Hi everyone! > > Im trying to install mechanizer from > http://github.com/tenderlove/mechanize. > I`ve clone the project into /tmp folder. When I do rake inside the > folder /tmp/mechanizer it gives me this error: > > mac159180:mechanize ren

[Rails] NoMethodError: undefined method `force_encoding' for "Conten

2010-09-01 Thread Renato Isidio
Hi everyone! Im trying to install mechanizer from http://github.com/tenderlove/mechanize. I`ve clone the project into /tmp folder. When I do rake inside the folder /tmp/mechanizer it gives me this error: mac159180:mechanize renatosis$ rake (in /private/tmp/mechanize) /System/Library/Frameworks/Ru

Re: [Rails] NoMethodError

2010-07-16 Thread Leonardo Mateo
On Fri, Jul 16, 2010 at 1:08 PM, Abder-Rahman Ali wrote: > I'm trying to create an "Inventory" application that has two models: > > 1- item > 2- itemdetails > > I have made a "relationship" between those two models, such that: > > item has_many itemdetails > > Once I try to create an item or itemd

[Rails] NoMethodError

2010-07-16 Thread Abder-Rahman Ali
I'm trying to create an "Inventory" application that has two models: 1- item 2- itemdetails I have made a "relationship" between those two models, such that: item has_many itemdetails Once I try to create an item or itemdetail I get a NoMethodError as follows: http://pastie.org/private/wvqtorzl

[Rails] NoMethodError in UsersController#show

2010-07-12 Thread Jason Newport
So I am getting the error NoMethodError in UsersController#show error undefined method `feed' for nil:NilClass {"authenticity_token"=>"zalkdfsjfksjd;lfs;lfksdkf/2tPzo=", "login"=>"session", "password"=>"admin", "commit"=>"Log in"} Why is login being set to "session"? Instead of the real login?

[Rails] NoMethodError in StoreController#add_to_cart -> getting nil

2010-06-20 Thread Manuel Manuel
Hey everybody, I am currently following the depot application from the book Web Agile Development with Rails (3rd Edition) but after creating the controller for the Store and the Cart model, I am always getting a nil product, no matter how many products I add to the database. I am very new with Ro

[Rails] "NoMethodError in AdminController#index" error

2010-06-14 Thread Hormoz Hormoz
hi, im totally a newbie so i have got no idea whatsoever why i got this error, the thing that happend was i was doing a little coding along with the lynda.com rails series that i got this error. well as u can see this is the error which i get on terminal, but there is another one in browser too whi

[Rails] NoMethodError: You have a nil object when you didn't expect

2010-05-28 Thread Manivannan J
Hi, I have tried to use searchlogic in my application... in def index, @search = AccounDetail.search(params[:search]) @account_details = @search.all In index.rhtml <%form_for @search do |f|%> <%=f.label :name_like,"Name"%> <%=f.text_field :name_like%> <%=submit_tag :Search,:nam

Re: [Rails] NoMethodError: You have a nil object when you didn't expect

2010-05-27 Thread Mathew Augustine
da manu.this prob is related with routes.yor are suppose to put that method in routes.rb On Thu, May 27, 2010 at 5:13 PM, Manivannanj Jeganathan < li...@ruby-forum.com> wrote: > Hi, > > I have tried to use searchlogic in my application... > in def index, > @search = AccounDetail.search(par

[Rails] NoMethodError: You have a nil object when you didn't expect

2010-05-27 Thread Manivannanj Jeganathan
Hi, I have tried to use searchlogic in my application... in def index, @search = AccounDetail.search(params[:search]) @account_details = @search.all In index.rhtml <%form_for @search do |f|%> <%=f.label :name_like,"Name"%> <%=f.text_field :name_like%> <%=submit_tag :Search,:nam

Re: [Rails] NoMethodError (private method `chomp' called for nil:NilClas

2010-03-26 Thread Colin Law
On 25 March 2010 23:45, Jefflin Huang wrote: > Hi: > > I am using Rails 2.3.5 with paperclip, mime-types and uploadify. So far > the application is working in development environment. But when I > switched to the production environment, it produced the following error. > > NoMethodError (private m

[Rails] NoMethodError (private method `chomp' called for nil:NilClas

2010-03-25 Thread Jefflin Huang
Hi: I am using Rails 2.3.5 with paperclip, mime-types and uploadify. So far the application is working in development environment. But when I switched to the production environment, it produced the following error. NoMethodError (private method `chomp' called for nil:NilClass): /usr/lib/ruby/ge

[Rails] NoMethodError in AdminController#index

2010-03-22 Thread dwhitekiss
I am newb in ror. I've googled and found no concrete answer to my problem below: NoMethodError in AdminController#index undefined method `scaffold' for AdminController:Class RAILS_ROOT: /home/darwin/Sites/music_library Application Trace | Framework Trace | Full Trace /home/darwin/Sites/music_l

[Rails] NoMethodError (undefined method `match' for nil:NilClass):

2010-03-04 Thread Raj Karthik
Hi, I have a redmine server with Ruby 1.8 running along with Webrick. When I try to access any docs on the server using web interface I get the following message. Internal error An error occurred on the page you are trying to access. If you continue to experience the problems please contact the a

Re: [Rails] NoMethodError ... nil.clear

2010-02-24 Thread Michael Pavling
On 23 February 2010 23:49, paul h wrote: > NoMethodError (You have a nil object when you didn't expect it! > You might have expected an instance of Array. > The error occurred while evaluating nil.clear): If you post code extracts from around the area that seems to be failing, we might be able to

[Rails] NoMethodError ... nil.clear

2010-02-24 Thread paul h
Hi, Rails 2.3.5 Any ideas on the following error when calling create on an ActiveRecord object? NoMethodError (You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.clear): The create method is inside a Module that

Re: [Rails] NoMethodError: undefined method while running test

2010-01-26 Thread Colin Law
2010/1/25 Vishwa Rao : > I run the command: ruby test/unit/user_test.rb > > I get the error: > NoMethodError: undefined method `authenticate' for # >     > C:/Ruby19/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/base > .rb:1959:in `method_missing' >    test/unit/user_test.rb:13:in `

Re: [Rails] nomethoderror when trying to create permissions

2010-01-21 Thread Colin Law
2010/1/21 John Merlino : > Hey all, > > I'm getting a nomethoderror: > The error occurred while evaluating nil.staff_admin? > > It occurs while I'm trying to create role-based permissions for specific > actions, such as edit. So a staff admin may not be able to edit. Now I > understand that it's tr

[Rails] nomethoderror when trying to create permissions

2010-01-21 Thread John Merlino
Hey all, I'm getting a nomethoderror: The error occurred while evaluating nil.staff_admin? It occurs while I'm trying to create role-based permissions for specific actions, such as edit. So a staff admin may not be able to edit. Now I understand that it's trying to say that staff admin is undefin

Re: [Rails] NoMethodError

2009-12-23 Thread Dhruva Sagar
>From the logs what appears to me is that you don't have any 'title' field in the book database. Thanks & Regards, Dhruva Sagar. On Thu, Dec 24, 2009 at 12:36 PM, dwhitekiss wrote: > Hi, > > In a few words, can someone explain to me the NoMethodError. Googling > for answers will get you to s

[Rails] NoMethodError

2009-12-23 Thread dwhitekiss
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 # Extracte

[Rails] "NoMethodError" while running Rake

2009-12-20 Thread dwhitekiss
Hi All, I was able to match the development database and migration will when running rake db:migrate I am trying to understand the error logs generated when running rake. $ rake (in /home/user/projects/emporium) /usr/bin/ruby1.8 -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/ lib/rake/rake

[Rails] NoMethodError in Books#index

2009-12-18 Thread tesla
hi i have books_controller(action new index show create update..) by scaffolding and i add these lines to my program books_controller action def buy @book = Book.find(params[:id]) @book.user = current_user end routes.rb map.resources :books, :collection => { :buy => :get } ***

[Rails] NoMethodError: undefined method `request='

2009-10-27 Thread Hans
Hello, I'm following along on the Railsspace Tutorial and I keep getting this one error. Any help would be appreciated. Sorry if this isn't enough information. What else would help? Thanks a million. dhcp128036168070:rails_space Hans$ ruby test/unit/user_test.rb --trace invalid option: --trace T

[Rails] NoMethodError application_controller.rb:10

2009-10-21 Thread rtacconi
When I try to set a session variable, in ApplicationController, I get this: NoMethodError in ManagementController#index You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[]= RAILS_ROOT: c:/dev/qna

[Rails] NoMethodError in User sessionsController#new

2009-10-17 Thread Kevin M
I'm setting up authentication with Authlogic and I get this error. I've done some searching but with no success. I tried setting the current_user method in Application_controller to protected and not private, on the recommendation in Stack Overflow. Error in browser- NoMethodError

[Rails] NoMethodError in Stories#show

2009-09-29 Thread paul.denlin...@gmail.com
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 advanc

[Rails] NoMethodError : undefined method `stringify_keys!' for "2":String

2009-09-25 Thread maddy
Hi, I have been trying to create a small Rails application. In one of the steps, I am facing this error as "NoMethodError in ContactController#update .. undefined method `stringify_keys!' for "2":String". Let me give a brief description of the application. This application is to Create

[Rails] NoMethodError with unexpected nil object in ERB

2009-08-27 Thread Ryoichiro Kamiya
I have created original method and trying to pass newly instantiated object to ERB file, but encountering NoMethodError in ERB file with the following error message. --- NoMethodError in Products#lookup Showing app/views/products/lookup.html.er

[Rails] nomethoderror : undefined method post

2009-08-05 Thread Jyothsna Vu
HI, I am trying out some examples form this book "Build Your Own Ruby on Rails Web Applications" I have two views app/views/story/01-new.rhtml and exact ditto app/views/story/new.rhtml except the action is pointed correctly to itself in both 01-new.rhtml and new.rhtml. I started the server and

[Rails] NoMethodError in User sessionsController#create - Authlogic

2009-08-02 Thread Rzepak G.
Hi, I'm beginner in rails, and I wanted to add to my simple application Authlogic. So I've watched http://railscasts.com/episodes/160-authlogic and step-by-step done everything. And almost everything works fine, except login in. After registration new user is automatically logged in, he can edit h

  1   2   >