similar to: undefined methods page_count

Displaying 20 results from an estimated 10000 matches similar to: "undefined methods page_count"

2007 Dec 23
8
will_paginate wont_paginate for me!
Sorry for the cheesy topic name couldn''t resist. B4 I go into details I''m rocking Rails 1.2.6. I''m hosting on MediaTemple and they seem to working on some issue between their grid servers and 2.0. I''m struggling with pagination. I spent a few hours discovering that everyone thinks you should use a plugin to do your paginations. It seems will_paginate is
2007 Dec 13
3
Realise a web service with ruby on rails.
Hi , I want realize a web service with rails, but it''s the response it''s very slow. I want only saw all element present in my base. I did a base Customers (with element like id, name, phone,...). I added two elements. I did a model customer, a web_service customer. In the file /app/apis/customer_api.rb class CustomerApi < ActionWebService::API::Base api_method :listid,
2009 Jul 28
2
Basic question map.root question
Hi I''m brand new to RoR and just started the intro tutorial. When trying to set the application home page like this: http://guides.rubyonrails.org/getting_started.html#setting-the-application-home-page The server won''t start and gives the following errors (below) I''m surprised to run into this error so early in the tutorial. Anyone know what''s wrong with
2008 Jun 22
1
will paginate?
I installed the gem will_paginate and made a simple view to mess out how it works in the controller i have @sites = Site.paginate :per_page => 10, :page => params[:page] simple view <% for @sites in @sites %> <%= @sites.naam %> <%= will_paginate @sites %> <% end %> but i got no result ActionView::TemplateError (undefined method `page_count''
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:
2008 May 24
1
link_to_remote, image_tag, mouseover is this possible?
Hi guys, I was wondering if you are able to have a link_to_remote, having an image_tag and the link_to_remote has a mouseover event that updates a div. Does the image_tag need the mouseover event? I currently have: <%= link_to_remote(image_tag(@p_image.public_filename(:thumb)), :update => "big_pic", :onmouseover => {:action => :color_change, :id => @p_image.id})%>
2007 Jul 12
1
form_tag doesn't accept a string anymore in edge rails?
So, here''s the offending line. Note that I''m using edge rails. form_tag verifications_path(@user), :method => :post do verifications_path(@user) returns a string like "/users/3/ verifications". That eventually gets sent to url_for, which expects a hash. And then it blows up. It''s especially disconcerting since the documentation shows form_tag as
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
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:
2006 Apr 17
5
Strange question on file_column
I have met a very strange problem on file_column usage. After I have added file_column :image to the model,everything is ok. But after I added more: file_column :image, :magick => {:versions => { :thumb => {:size => "50*50"}, :medium => {:size => "640*480>"}}} I can not even start the whole website! Here is the
2006 May 22
4
RMagick gem problem using Rails and possibly WEBRick...
Hello, I am new to rails but have been having fun so far. Until now. I am sure this is just my inexperience but I have the RMagick gem (ruby gem for using imagemagick manipulation) installed on my machine that I would like to then use in my rails app. I first installed it and tried it out, and it didnt do anything for me, took me a while to realize I needed the windows RUBYOPT
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
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
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 =
2007 Jul 06
3
stubbing helper methods for View specs
Hi there I have several view specs, that include the following snippet in their "before" block to stub the methods by acts_as_authenticated before :each do @u = mock_model(User) @u.should_receive(:name).and_return("Hans Muster") template.should_receive(:logged_in?).and_return(true) template.should_receive(:current_user).and_return(@u) end this
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
2007 Dec 29
2
needs to have method `_load'
I''m getting an exception that I''m fairless clueless about. It occurs when I run a "create" action but neither my action or before filters are hit before this exception. I''m hoping someone can give me a clue. I suspect it has to do with marshalling objects in the session - maybe TzTime is not capable of being stored in the session. I hope that''s not the
2007 Dec 07
4
strange error on mock proxy
I''m banging my head over this really strange error in a view test when I run "rake spec". The weird thing is that I don''t get the error when I run the spec file by itself. Here is the spec (I know, fixtures are the devil): describe "/units/new.html.erb here" do fixtures :units, :accounts, :groups it_should_behave_like
2006 Aug 02
4
Disc quota exceeded when attempting to write session
Hi All, When trying to write sessions file, I''m getting disc quota errors. Looking into the sessions folder, I see: -rw------- 1 www www 188 Aug 2 21:03 ruby_sess.d39a2c77b4750b72 -rw-r--r-- 1 www www 0 Aug 2 21:03 ruby_sess.d39a2c77b4750b72.tmp I''m guessing the the tmp should not be there, as it does not show on my dev setup. I''m using rails (1.1.1)
2005 Dec 21
2
Missing error page templates
Whenever I get any errors on my application, I don''t get the regular rails error page with all the debugging information. What could''ve cause this? This is from the logs: ActionView::ActionViewError (No rhtml, rxml, rjs or delegate template found for /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/templates/rescues/template_error.rhtml):