Hello everyone, I am having an issue with the will_paginate gem, i have
recently added AJAX and JS to refresh the div with paginate without
refreshing the page.
I followed online examples and successfully got it working, however the
previous button and the first page are not shown as links, and
Page Source - With Ajax Functioning
div class='paginate'
div class=paginationspan class=previous_page
disabled#8592; Previous/span em class=current1/em a
rel=next href=/tickets?page=22/a a href=/tickets?page=33/a
a href=/tickets?page=44/a a href=/tickets?page=55/a a
class=next_page
I'm not 100% why, but that worked perfectly. Thanks so much!
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to
TicketType(#70316537311800) expected, got String(#10085740)
app/controllers/reasons_controller.rb:44:in `new'
app/controllers/reasons_controller.rb:44:in `create'
View:
%= f.label :ticket_type %br /
%= f.select :ticket_type, TicketType.all.collect {|t| [ t.description,
t.description]},
That worked perfectly. Thanks alot for the help, and ill keep the line
#'s in mind for next time
--
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 unsubscribe from this group and stop receiving
5 matches
Mail list logo