search for: previous_label

Displaying 5 results from an estimated 5 matches for "previous_label".

2008 Dec 27
2
will_paginate working in the opposite way expected
Hi, I am creating a little blogging engine, so I want the most recent posts to display first, so I make a search with :order => ''created_at DESC'' For some reason, will_paginate works the opposite way I expect it to be. I mean the previous / next links are opposite to what I want. What could I be doing wrong? -- Posted via http://www.ruby-forum.com/.
2010 May 04
2
Encoding problems, applying a patch, how to???
...action=> :edit , :id => project.id } %></ td> <td><%= link_to ''Apagar'', { :action=> :delete, :id => project.id}, :confirm => "Tem certeza?" %></td> </tr> <% end %> </table> <%= will_paginate @projects, {:previous_label => "", :next_label => "Próximo" } %> please, any light? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public....
2012 May 28
1
rendering a partial inside another using render_to_string and (:formats) in controller
...======================================================== WILL_PAGINATE PARTIAL: ============================================================ <div class="pagination_wrapper"> <%= will_paginate @search_result, :page_links => false, :previous_label => "#{image_tag ''icons/control-180.png'', :class => "prev-button link-button link- button-small"}", :next_label => "#{image_tag ''icons/ control.png'', :class => "next-button link-button l...
2009 Mar 21
2
ApplicationHelper::WillPaginate (NameError)
What wrong? environment.rb require "will_paginate" application_helper.rb include WillPaginate::ViewHelpers def will_paginate_with_i18n(collection, options = {}) will_paginate_without_i18n(collection, options.merge(:previous_label => I18n.t(:previous), :next_label => I18n.t(:next))) end alias_method_chain :will_paginate, :i18n /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:440:in `load_missing_constant'': uninitialized constant ApplicationHelper::WillPaginate (NameError) -...
2010 Jul 23
0
alias_method_chain with i18n
.../2009/01/enable-i18n-in-will_paginate-plugin/ The author adds to application_helper.rb the following code: ############################################# include WillPaginate::ViewHelpers def will_paginate_with_i18n(collection, options = {}) will_paginate_without_i18n(collection, options.merge(:previous_label => I18n.t(''will_paginate.previous''), :next_label => I18n.t(''will_paginate.next''))) end alias_method_chain :will_paginate, :i18n ############################################# What I would like to understand is how this code is working, the "magic&quot...