search for: theme_id

Displaying 2 results from an estimated 2 matches for "theme_id".

Did you mean: theme_bw
2006 Jun 21
5
Problem with observe_field
Hi folks, I have following in my view : =================== <div class="foo"> <%= select ''theme'', "id", Theme.find_all.collect {|t| [ t.name, t.id ] }, { :prompt => ''Select a theme'' } %> </div> <%= observe_field( :theme_id, :update => :my_style, :url => { :action => :themelookup, :id => @space,}, :with => ''theme_id'') %> <div class="userfoo"> <%= text_area ''my'', ''style'', :cols => ''65'', :rows=>'...
2006 May 22
4
use join table in paginate
...se, that is) and its join table. Here are my objects: class Painting has_and_belongs_to_many :themes which maps to db entity painting id class Theme has_and_belongs_to_many :paintings which maps to db entity theme id And of course the join table paintings_themes painting_id theme_id So, paintings have one or more themes, and a theme can belong to more paintings. In my ExpositionController, which shows the paintings, I have: @painting_pages, @paintings = paginate :paintings, :per_page => 10 But now I want only to show paintings with a certain theme (still paginated o...