Displaying 3 results from an estimated 3 matches for "webermp".
Did you mean:
weber
2006 Jul 31
1
Grouping arrays in the View
I remember reading something awhile back about an easy way to work with
object arrays in views. Say I want to arrange 20 images objects in rows
of 3. I have a collection of @users, where each user has a
user.thumbnail_url image. Is there some way to split these up so that
they can be easily parsed in rows of three?
Thanks,
Nathan
-------------- next part --------------
An HTML
2006 Jul 31
3
Missing controller default code
Hello,
I generated a controller, using the command:
ruby script/generate controller my_kontroller my_model
The generated controller file, however, contains an empty class
definition. The default controller code is missing.
Any idea what went wrong?
Thanks,
gk
--
Posted via http://www.ruby-forum.com/.
2006 Jul 31
9
Multiple Pagination
I have the following:
def index
begin
@restaurant_pages, @restaurants = paginate :restaurants,
:order => (params[
:sort ] || "name"),
:per_page => 2
@cuisines = Cuisine.find_all
rescue
redirect_to :action => :index
end
end
# sort by cuisine
def