<a href="/admin/nested/12?_method=get&amp;associations=registration"
class="nested action" id="admin-nested-12-link"
position="after">Registration</a>

On Apr 23, 1:46 pm, Kenny Ortmann <[email protected]> wrote:
> I meant the entire html for the link
>
> On Thu, Apr 23, 2009 at 1:06 PM, hotpants <[email protected]> wrote:
>
> > Certainly.
>
> > An example from the "Registration" link is as follows:
>
> >https://www.mydomain.com/admin/nested/12?_method=get&associations=reg...
>
> > On Apr 22, 4:46 pm, Kenny Ortmann <[email protected]> wrote:
> > > Can you please post the contents of the anchor?
>
> > > On Tue, Apr 21, 2009 at 4:20 PM, hotpants <[email protected]>
> > wrote:
>
> > > > I have models as follows:
>
> > > > user.rb:
>
> > > > >class User < ActiveRecord::Base
> > > > >  has_one :registration
> > > > >end
>
> > > > registration.rb:
>
> > > > >class Registration < ActiveRecord::Base
> > > > >  belongs_to :user
> > > > >end
>
> > > > I want to setup an admin controller that administers users and their
> > > > associated registration.
>
> > > > admin_controller.rb
>
> > > > >class AdminController < ApplicationController
>
> > > > >  active_scaffold :users do |config|
> > > > >    config.list.label = "Users"
> > > > >    config.list.columns = [:id, :last_name, :first_name, :email,
> > > > :address1, :address2, :city, :geo_state, :zip, :daytime_phone,
> > > > :evening_phone]
> > > > >    config.list.sorting = {:last_name => 'ASC'}
> > > > >    config.nested.add_link('Registration', [:registration])
> > > > >  end
> > > > >end
>
> > > > config.nested.add_link('Registration', [:registration]) successfully
> > > > adds the "Registration" link to each row in the Users form, but
> > > > clicking on it on any row simply opens another nested list of Users.
>
> > > > How can I get this link to display the selected user's registation?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to