Displaying 20 results from an estimated 6000 matches similar to: "NoMethodError in AdminController#index"
2008 Jun 21
15
will_paginate generates undefined method paginate
Dear
I used to use the will_paginate plugin, and now it is no longer
available in the repository.
I am using the one in the gem
#gem install will_paginate
in my controller I have this
@careers = Career.paginate :page => params[:page], :per_page => 10
and in the view
<%= will_paginate @careers %>
I found this way in all the tutorials and the railscasts episode 51.
Though I still
2008 Mar 31
10
Paginate with Rails 2.0.2 question
Hi,
So I''m using @post_pages, @posts = paginate :posts, :per_page => 10
to paginate.
But I have rails 2.0.2 on my VPS. Now this version of paginate throws
an error. What happened to classic pagination and what is done now?
Thanks,
Ron
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
2009 Aug 13
2
ajax with will_paginate problem
i can use <%= link_to_remote("MEMBER LIST",:update => "mcont", :url =>
{:controller => :users, :action => :list }) %> this for user listing and
then it display record i want to do paging on this list file but it is
display one page when i click on second page this will no go to second
my controller
def list
#@images = Image.paginate :page =>
2010 Jun 14
7
"NoMethodError in AdminController#index" error
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 which says : "NoMethodError in
AdminController#index " u can see it in the picture here :
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
2010 Sep 11
10
Having difficulty with threaded comments, using acts_as_tree
I''ve been having problems making threaded comments for the last few
days. Mainly with creating children and displaying the children.
Currently, I have comments shown at the bottom of my articles show view.
The top level comments work, but I do not really know how to implement a
way for users to "reply" to the top level comments and take them to a
form (the comment
2008 Jun 10
1
NameError in AdminController, uninitialized constant
Hi there basically following the "Agile Web Development With Rails, 2nd
Edition"
i followed the tutorial exaclty, worked fine, so i decided to change one
thing
on page 74 instead of:
ruby script/generate model product
i used:
ruby script/generate model propertys
and:
depot_a/db/migrate/001_create_products.rb
~/Rails/ecom/db/migrate$ cat 001_create_propertys.rb
class
2010 Aug 24
11
will_paginate problem
Hi
I am using rails 2.3.8 & ruby 1.3.7 & will_paginate 2.3.14
I have table name books. I am doing this code for pagination,
In book_controller
@@@@books = Book.paginate :page => params[:page], :per_page => 10@@@@
& in index.html.erb
@@@@@<%= will_paginate @books %>@@@@@
Also added in environment.rb file this line
@@@@@ require
2009 Mar 24
12
MonkeyPatching ActiveRecord::Base class
I am trying to monkey-patch the ActiveRecord::Base class to incorporate
a generic search class method so that it can be used by all model
classes which need this functionality. Since model classes directly
inherit from ActiveRecord::Base and unlike controllers and helpers, do
not have an ancestor class defined, I think I am forced to open the
ActiveRecord::Base class and patch it? May be I am
2010 Nov 24
2
will_paginate on enormous tables
I''m using the plugin will_paginate with a table of more than 100,000
records, i also do a join with other table.
I''m wondering if will_pagination in my situation is an appropriate
choice, or whether it is better to implement something ad-hoc?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on
2006 Aug 17
6
NameError in AdminController#index building scaffold
I''m a pretty big newbie with ROR, but when following a tutorial I
encounter an ugly error when building a scaffold. Here is my
environment
Dev system:
- Windows XP
- java version "1.5.0_06"
- MySQL java version "1.5.0_06"
- Ruby 1.8.4
- Ruby Gems 0.9.0
- Gem install mysql
Successfully installed mysql-2.7.1-mswin32
Installing ri documentation for
2009 Nov 03
2
will_paginate pagination problem
hi;
i use will_paginate the first page come true but all other page get the
same data of first page i checked in controller "page" parameter works
true but paginate get only first page''s data and shows these data in all
pages
forexample first page seen A,B second page also seen A,B but second page
must be C,D
my code is;
controller :
@list = Company::Env.paginate :page =>
2010 Mar 23
3
NoMethodError in AdminController#index
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_library/app/controllers/admin_controller.rb:3
2009 Oct 28
2
mislav-will_paginate(will_paginate)
mislav-will_paginate(will_paginate) doesn''t work after search.
servers_controller.rb
def index
@servers = Server.paginate(:page => params[:page], :per_page => 20,
:order => ''device_id ASC'')
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @servers }
end
end
def search
@servers =
2013 Oct 24
6
undefined method `paginate' for #<Class:0x567eb98> in Rails Tutorial
Hi,
I''m getting a undefined method `paginate'' for #<Class:0x567eb98> even
though I have gem ''will_paginate'' installed.
Inside the users_controller I have @users = User.paginate(page: params[:page
])
so I believe I set everything up to be correct.
Can you figure out why the method''s undefined, despite installing the gem?
--
You received this
2008 Jul 14
1
will_paginate paginates all instead of subclass
I''m still a newb but having fun - Any help on this problem will be
much appreciated.
I have mymodel Call.rb
class Call < ActiveRecord::Base
belongs_to :user
has_many:visits, :dependent => :destroy
has_many:visits do
def latest
find :all, :order => ''id DESC'', :limit => 3
end
def all_latest
find
2009 Sep 18
13
Rails 2.2.3-1 Problem
After installing the rails I faced this problem. If anyone aware of this
problem, kindly give solution for this.
vellingiri@WebDevel:~/public_html/Isync$ ./script/server
=> Booting WEBrick...
/usr/local/lib/site_ruby/1.8/rubygems.rb:149:in `activate'': can''t
activate activeresource (= 2.3.4, runtime), already activated
activeresource-2.1.0 (Gem::Exception)
from
2008 Feb 19
3
will_paginate question
Hi-
Is it possible to use search parameters with will_paginate?
For example, something like this:
@var = Model.paginate :per_page => 20, :page => params[:page],
:order => ''my_date DESC'', :conditions
=>["my_date >= ? AND my_date <=?",@start,@end]
I am getting some errors with this, but will this generally work?
2009 Nov 26
6
will_paginate don't work on jruby platform
Hello all,will_paginate don''t work on jruby platform,
the Model.paginate find works ok, accepts all kinds of params,
this is config.gem
config.gem ''will_paginate'', :version => ''2.3.11'', :source =>
''http://gemcutter.org'',
but <%= will_paginate @collection %> doesn''t work
it always produce nil(so nothing on page).
2008 Nov 28
1
Rails Beginner.. NoMethodError
Dear all
I encounter error when I login my Web application
NoMethodError in AdminController#login
undefined method `get_title'' for #<Class:0x63ac78>
Here is part of my code
controller/admin_controller.rb
def login
session[:user_id] = nil
if request.post?
if User.authenticate(params[:name], params[:password])
user = User.find_by_name(params[:name])