Displaying 2 results from an estimated 2 matches for "mcomi".
Did you mean:
fcomi
2006 Feb 09
6
Can I protect access to a relationship?
Hi,
I have a class Match that looks like this (simplified)
class Match < ActiveRecord::Base
belongs_to :opp1, :class_name => "Player", :foreign_key => "opp1_id"
belongs_to :opp2, :class_name => "Player", :foreign_key => "opp2_id"
belongs_to :winner, :class_name => "Player", :foreign_key => "winner_id"
end
Can I
2006 Jan 11
0
AJAX: link_to_remote problem
I use:
<%= link_to_remote("Update",
:update => ''mydiv'',
:url => { :action => :create, :host => ''rails'' }) %>
which generates the following:
<a href="#" onclick="new Ajax.Updater(''mydiv'', ''/account/create'',
{asynchronous:true, evalScripts:true}); return