Displaying 2 results from an estimated 2 matches for "picture_pag".
Did you mean:
picture_pages
2006 Jul 01
0
Can''t connect to MySQL
I''m trying to setup rails on a windows machine. "Hello World" is working
fine, but when i try to connect to a (remote) mysql database i get this
error: http://pastebin.ca/76271
I get the error as soon as I add the line: "@picture_pages, @pictures =
paginate :pictures, :per_page => 10" to my page.
The know it''s not the MySQL server since i used it for other (rails)
projects, and if i just rename the table i get a "table not found"-error
instead, which should indicate that it connects fine.
--
Posted...
2006 Mar 13
6
lame newbie question: how to pass instance variables
...redirect_to :controller => ''picture'', :action => ''list_new_pictures''
end
def list_new_pictures
# Is this how I should use a paginator when my list is not from the
db?
# Note that I get an exception here, because @new_pics is always
nil!
@picture_pages = Paginator.new self, @new_pics.count, 12,
@params[''page'']
@pictures = @new_pics
render :action => ''list''
end
So what am I doing wrong? Is it not right to expect that instance
variables to hold values across actions? Why not?
Should I be shovin...