search for: view_helpers

Displaying 10 results from an estimated 10 matches for "view_helpers".

2007 Jul 19
8
Where do I put code for my own types?
Sorry for all the questions today... Beyond the obvious things--models, controllers, helpers, and other framework-related types--where should I put the code for my own types? For example, I was thinking of writing my own AJAX-friendly paginator, but I don''t know where to put the code for that sort of thing. I would prefer to keep things object-oriented, so I would rather do a lot of
2009 May 18
3
Pagination
Hi, I am using the will_paginate plugin for my application. It is showing Previous 1,2,3...22,23,24 Next links How will I hide the numbers? I want to have first and last links also. How will i do that? Thanks in advance. -- Posted via http://www.ruby-forum.com/.
2008 Oct 27
8
pagination in ajax
hi, I am curently using rails version 2.1.1. Currently i have done simple pagination using will_paginate plugin.it works.but when i am trying pagination using ajax with help of will_paginate plugin it wont works.i am also using RemoteLinkRenderer helper, but it gives an error uninitialized constant RemoteLinkRenderer. can anyone provide any tutorial or sample code so that i can
2007 Dec 03
1
undefined methods page_count
...10 %> 8: 9: <p> 10: <%= link_to_protected ''Main page'', :action => ''index'' %> RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace /home/jerry/NetBeansProjects/hacdb/vendor/plugins/will_paginate/lib/ will_paginate/view_helpers.rb:45:in `will_paginate'' /home/jerry/NetBeansProjects/hacdb/app/views/main/list_all_ann.rhtml: 7:in `_run_rhtml_47app47views47main47list_all_ann46rhtml'' /home/jerry/NetBeansProjects/hacdb/vendor/plugins/will_paginate/lib/ will_paginate/view_helpers.rb:45:in `will_paginate'...
2011 Oct 08
1
Rails view spec expectations/matchers
>From looking at the RSpec Rails documentation (https://www.relishapp.com/rspec/rspec-rails/docs/view-specs/view-spec) it seems like rendered is just a string and you can''t really do any assert_select type stuff out of the box. After Googling around, it seems that the RSpec authors decided that if you want that functionality, you should just use Capybara or some such... is that
2009 May 22
1
rails 2.3.2, active scaffold, nested, ActionView::TemplateError (undefined method `format_column' for #<ActionView::Base:
...for #<ActionView::Base:0xb67cee38>) on line #28 of vendor/plugins/ active_scaffold/frontends/default/views/_nested.rhtml: format_column is defined in: .../vendor/plugins/active_scaffold/lib/helpers/list_column_helpers.rb which is included via: .../vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb which is included via: .../vendor/plugins/active_scaffold/environment.rb which is included via: .../vendor/plugins/active_scaffold/init.rb so I don''t understand why it''s not defined when needed. Any pointers/ideas will be much appreciated. This worked fine in 2.2.2. Thanks...
2012 Feb 09
0
how to rename a method of a module.
I''m using the gem bootstrap-will_paginate and inside this gem there is the initializer: require ''will_paginate/view_helpers/action_view'' module WillPaginate module ActionView def will_paginate(collection = nil, options = {}) options, collection = collection, nil if collection.is_a? Hash # Taken from original will_paginate code to handle if the helper is not passed a collection object. collec...
2007 Dec 10
4
Need help in Ajax Pagination
hi All, i wants to implement ajax pagination but i am facing a lot of problem , i found i lots of links on google but their is no explanation like what object we have to pass and condition can any body help me out in this concern pls i need your help as soon as possible thanks sachin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2008 Jun 22
1
will paginate?
...ine #5 of home/all.rhtml: 2: 3: <%= @sites.naam %> 4: 5: <%= will_paginate @sites %> 6: 7: <% end %> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:205:in `method_missing'' vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb:91:in `will_paginate'' app/views/home/all.rhtml:5:in `_run_erb_47app47views47home47all46rhtml'' app/views/home/all.rhtml:1:in `each'' app/views/home/all.rhtml:1:in `_run_erb_47app47views47home47all46rhtml'' /usr/local/lib/ruby/gems/1.8/gems/actionp...
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