[Rails] Will_Paginate Doesnt Show First Page

2013-03-28 Thread Colton Pl
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

[Rails] Re: Will_Paginate Doesnt Show First Page

2013-03-28 Thread Colton Pl
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

[Rails] Re: Will_Paginate Doesnt Show First Page

2013-03-28 Thread Colton Pl
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

[Rails] TicketType Expected, Got String

2013-02-27 Thread Colton Pl
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]},

[Rails] Re: TicketType Expected, Got String

2013-02-27 Thread Colton Pl
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