Displaying 2 results from an estimated 2 matches for "kintner".
Did you mean:
lintner
2008 Jul 24
1
How to add link_to_remote element with RJS?
Hello,
after executing an action, I add an <li> element to an existing list
using a RJS template:
page.insert_html :bottom, :contributors, "<li
id=''contributor.#{@contributor.id}''>#{@contributor.user.name}</li>"
but I need to add an image with a link_to_remote as I have in a
partial page:
<li id="contributor.<%= contributor.id
2008 Jul 30
4
AssociationTypeMismatch: Genre expected, got String
Hi all
I have the following 2 models:
class CompactDisc < ActiveRecord::Base
belongs_to :genre
end
class Genre < ActiveRecord::Base
has_many :compact_discs
end
I have created a select box for my form so I can choose a genre for
every compact disc:
<p>
<b>Genre</b><br />
<%= f.select :genre, Genre.find(:all).collect{|p| [p.name, p.id]},
:selected =>