RailsCasts Pro episodes are now free!

Learn more or hide this

Oliver Kriška's Profile

GitHub User: quatermain

Comments by Oliver Kriška

Avatar

I set up template, but it's only on first page, can you help me?

ruby
def initialize(....)
super(:template => filename,:bottom_margin => 120)
Avatar

It's good, but I have some problems with graphics.

Avatar

Our problem here too: Stack overflow
So, is there another solution for ajax(search, sort, paginate)??

Avatar

Can you help me please?

I have this error:

undefined method render for #<#<Class:0x9e54e54>:0xa860f24>
(in /var/www/final/evidencia02/evidencia/app/assets/javascripts/application.js.erb)

My application.js.erb:

ruby
$(function() {
  $("#zoznam_render th a, #zoznam_renders .pagination a").live("click", function() {
    $("#zoznam_render").html("<%=j render 'zoznam' %>");
    return false;
  });
 });

In index.html.erb render 'zoznam' is OK. "zoznam/index" is list of my products with custom sql select.