Hi, I have a User mode, and a Student model and use AS for all of my CRUD action.
I'm trying to build a function that should show the parents of a particular student. Would love to make it an 'visual extension' to AS. But how - the rails portion was easy - but how do I display it ? Shall I grab the show method/template from AS and user that as a template or is there a better method. Just trying to do: def parents student= Student.find(params[:id]) @record = User.find(student.user_id) render :controller => 'users', :action => 'show', :id => @record.id end Gives me what I want, but the headline is wrong ! It shows : Show Student (Should have been Show User) and then it gives me the items the the show view is configured to display. Is there a better way to do this ? And can one grab vendor/plugins/active_scaffold/frontends/default/views/_show_columns.html.erb, and placed a modified version in my view directory to customize the view. /S --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
