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 Trace c:/ruby/lib/ruby/1.8/cgi.rb:342:in `escape'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:75:in `request_url'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:75:in `request_url'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:66:in `request'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:142:in `method_missing'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:102:in `photos'' #{RAILS_ROOT}/app/controllers/flickr_controller.rb:5:in `search''c:/ruby/lib/ruby/1.8/cgi.rb:342:in `escape'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:75:in `request_url'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:75:in `request_url'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:66:in `request'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:142:in `method_missing'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:102:in `photos'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.rb:910:in `perform_action_without_filters'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'' c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/rescue.rb:82:in `perform_action'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.rb:381:in `process_without_filters'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/filters.rb:377:in `process_without_session_management_support'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/session_management.rb:117:in `process'' c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in `dispatch'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel/rails.rb:73:in `process'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:551:in `process_client'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:550:in `process_client'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:636:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:636:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:625:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:956:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:955:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/bin/mongrel_rails:127:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel/command.rb:199:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/bin/mongrel_rails:235 c:/ruby/bin/mongrel_rails:18c:/ruby/lib/ruby/1.8/cgi.rb:342:in `escape'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:75:in `request_url'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:75:in `request_url'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:66:in `request'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:142:in `method_missing'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:102:in `photos'' #{RAILS_ROOT}/app/controllers/flickr_controller.rb:5:in `search'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.rb:910:in `perform_action_without_filters'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'' c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/rescue.rb:82:in `perform_action'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.rb:381:in `process_without_filters'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/filters.rb:377:in `process_without_session_management_support'' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/session_management.rb:117:in `process'' c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in `dispatch'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel/rails.rb:73:in `process'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:551:in `process_client'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:550:in `process_client'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:636:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:636:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:625:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:956:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:955:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/bin/mongrel_rails:127:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel/command.rb:199:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/bin/mongrel_rails:235 c:/ruby/bin/mongrel_rails:18Request Parameters: {"commit"=>"Find", "tags"=>"arun"} Show session dump --- flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} ------------------------------------------------------------------------------- ------------------------------------------------------------------------------ plz help me guys.... i expect some good replies.... regards, Neo -- Posted via http://www.ruby-forum.com/.
put 24 in quotes like shown below class FlickrController < ApplicationController def search flickr = Flickr.new '''' render :partial => ''photo'', :collection => flickr.photos(:tags => params[:tags], :per_page => ''24'') end end /Josepj Neo wrote:> 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 Trace > c:/ruby/lib/ruby/1.8/cgi.rb:342:in `escape''-------------------------------------------------------------------------------> ------------------------------------------------------------------------------ > > plz help me guys.... > i expect some good replies.... > > > > regards, > Neo-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---