similar to: undefined method `comment_count' for YouTubeG

Displaying 20 results from an estimated 10000 matches similar to: "undefined method `comment_count' for YouTubeG"

2006 Mar 17
2
Security issue dealing with comment posting - anyone?
This is how I''m posting comments currently. This works, but I read somewhere that I shouldn''t inject params right into my sql query, because it makes it easy for people to hack in and ruin the db. I''m not sure if this even makes sense, but I''ve tried other things, and can''t get anything else to work. #currently def comments content =
2012 Jan 15
1
NoMethodError: undefined method `expect'
Ideas? ruby-1.9.2-p290 :002 > require ''rspec'' => true ruby-1.9.2-p290 :003 > RSpec::Version::STRING => "2.8.0" ruby-1.9.2-p290 :004 > describe ''division by zero'' do ruby-1.9.2-p290 :005 > expect { 2/0 }.to raise_error ruby-1.9.2-p290 :006?> end NoMethodError: undefined method `expect'' for
2006 Mar 17
1
How to handle errors - HELP
I''m having trouble with my Ajax comments, but only when someone clicks the submit button when there''s no comment. How can I handle this in my code? Do I use "rescue nil" or something? Here''s my controller: def comments content = Content.find(params[:id]) @comment = Comment.new(params[:comment]) content.comments << @comment
2012 Aug 14
1
NoMethodError: undefined method `accept' for nil:NilClass
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
2010 Jul 10
0
`method_missing': undefined method `i18n' for #<Rails::Railtie::Configuration:0x000001010fce98>
I have recently upgraqded to Ruby 1.9.2-rc1 and reinstalled rails 3 beta 4 with all the dependencies. I have run bundle install in my rails project. Now I am trying to run some tests... My test_helper.rb file looks like this: # test_helper.rb require ''rubygems'' require ''test/unit'' require ''rails/all'' $ gem list i18n (0.4.1, 0.3.7)
2013 Jan 20
20
ActiveRecord::Persistence.increment! requires a row lock to ensure isolated updates
The method is here: https://github.com/rails/rails/blob/master/activerecord/lib/active_record/persistence.rb#L288. The method takes the in-memory attribute value and increments it by the specified amount. A safer approach (from an isolation standpoint) would be to let the database determine the value. Instead of telling the database what value to persist in the database, the SQL can written
2010 Mar 17
3
ActiveRecord::StatementInvalid: Mysql::Error: Lock wait timeout exceeded
Hi all, Ive been getting this error on one particular query repeatedly for the past few days. ActiveRecord::StatementInvalid: Mysql::Error: Lock wait timeout exceeded; try restarting transaction: UPDATE `posts` SET `updated_at` = ''2010-03-17 05:35:00'', `view_count` = 54 WHERE `id` = 158 Googling around, I found that this is basically because the transaction times out after
2006 May 06
1
Ajax commenting - PLEASE HELP!!!!
I''m trying to post comments using Ajax. It seems that I have an infinite loop somewhere, because it hangs on the return from the Ajax call. The comment does get saved to the DB, but I have to refresh the page for it to show. The reason I know it''s some sort of infinite loop, is because I''m showing a "loading.gif" image, and it never goes away. Plus, if
2006 Mar 17
0
Returning from Ajax call - "redirect_to error"
I have Ajax commenting on my site, well, I''m trying to get it working. It worked fine locally, but when I posted to the server, I''m getting an "Application Error (Rails)", and I checked the logs, and it has: (stack trace too deep) /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:447:in `url_for''
2010 Jun 20
7
rspec-rails 2.0.0.beta.12 showing undefined method error for route_to
First of all, I''ve been trying to find an answer for this problem all over the internet without luck. The thing is that I am using RVM with ruby 1.9.2-head and I created a new empty gemset. Then I installed bundler gem with: gem bundler install That installed the library into the /Users/damselem/.rvm/gems/ ruby-1.9.2-head at rails3/gems directory. Then I went to my rails 3 app
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
2008 Jan 09
4
Using Prototype - Getting Javascript Error - "Object doesn't support this property or method"
I have the following javascript being called on my site and I am getting a Javascript error - "Object doesn''t support this property or method". The error is invoked on the line that has - "listItems = $ ("vidList").childElements("li");". The purpose of the Javascript is two fold: ''swapVideo'' to change the Youtube video and
2010 Dec 24
0
keep getting "undefined method `map' for nil:NilClass (NoMethodError) " in new server
hi guys, I have a new development server (ubuntu 10). I have done the following (the versions match my existing development machine which works fine): 1. installed ruby 1.9.1p378 2. installed ruby gems 1.3.7 3. installed rails 2.3.8 (used "gem install rails -v 2.3.8") 4. manually installed my other gems including sphinx and thinking sphinx with "gem install ..." 5. ran
2008 Jul 26
1
yum search prints 13 times the same package results
Hi all Why "yum search" prints 13 times the same results? I enabled according CentOS wiki the RPMforge repository. # yum search youtube-dl Loading "fastestmirror" plugin Loading "priorities" plugin Loading mirror speeds from cached hostfile * rpmforge: ftp-stud.fht-esslingen.de * base: mirror.widexs.nl * updates: archive.cs.uu.nl * addons: mirror.widexs.nl
2010 Jun 01
1
RSpec book errata #57 - undefined method `include' : what to do?
http://pragprog.com/titles/achbd/errata nr 57: Ruby 1.8.7 expected [] to include "Welcome to Codebreaker!" Ruby 1.9.1 undefined method `include'' for #<Object:0x80b32c90> (NoMethodError) --- class Output def messages @messages ||= [] end def puts(message) messages << message end end Then /^I should see "([^\"]*)"$/ do |message|
2011 May 20
0
delayed_job - Undefined method error even with Mongrel
Any delayed_job gurus out there? This is a known issue on the wiki as described at the bottom here: https://github.com/collectiveidea/delayed_job/wiki/Common-problems However, even when running Mongrel (on Rails 3.0.3, ruby 1.9.2, Win7) after replacing Webrick) I am still getting this issue. My delayed_job handlers read: --- !ruby/struct:Delayed::PerformableMailer object: !ruby/object:Class
2012 Jul 25
0
Rails3-default_scope throws exception: undefined method abstract_class? for Object:Class
I would like to apply logical delete in my application(Instead of permanently deleting a record just have been marked as deleted). I have Added *available* column to all tables with default value *true*. Now I want common place to write the following code for all models. 1. Write the instance method which make ''available'' column value false when user clicks on
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
2007 Jul 04
0
FW: Openmoko ads now on youtube
Hi Guys, Great example of how some of the OpenMoko guys are getting the word out there. If you don't know about OpenMoko you can review it here. http://deancollinsblog.blogspot.com/2006/11/fic-gta001.html http://deancollinsblog.blogspot.com/2006/11/open-phones.html http://deancollinsblog.blogspot.com/2007/06/home-brew-startrek-communica tor.html Otherwise check out some of the links
2019 Feb 02
2
linux rsync <-> SSHDroid has started becoming unreliable after an upgrade of Fedora 28 to 29
People, For some years I have been using rsync quite happily to send / retrieve files to / from SSHDroid Pro but recently I have started having a problem when transferring large numbers of file - I am pretty sure it started after upgrading from Fedora x86_64 28 to 29 - but I am not 100% sure. Below is the tail end of the output of: rsync -avvv root at 192.168.1.100:/storage . >