Not happening the way I inteneded to

35 views
Skip to first unread message

SJ

unread,
Feb 26, 2012, 11:57:08 PM2/26/12
to rails_admin
Hello,

So i installed rails-admin and its working fine so far. But the way
its setup is not the way i want it to be. So

1) I have a page model and a comment comment. In my normal app i
configured it in a way, that the comment appears below the description
of the page and users can add comments.
2) I would like to change the title of /admin where it says "Site
administration"
3) In history where it says message and says "create Page id 1". I
would like to change to something else. for instance, i would be
creating a summary text.area unde the Pages and would like to read the
@pages.summary under the "message" section in history. how do i do
that ?

Thanks

Benoit Bénézech

unread,
Feb 27, 2012, 6:25:54 AM2/27/12
to rails...@googlegroups.com
1) Use accept nested attributes in your Page model to have the comments in the page edit forms
For the show view, just do smtg like:

config.model Page do
  show do
    configure :comments do
      pretty_print do 
        bindings[:object].comments.join
      end
    end
  end
end

2) See the translation section in the wiki. This is the :dashboard action's title. Find the i18n key and change it in your locale/rails_admin.LOCALE.yml

3) History audit changes. I'm not sure what you want, but it doesn't sound standard.
You can hack your way around, I guess.

Shayon Mukherjee

unread,
Feb 28, 2012, 1:00:57 AM2/28/12
to rails...@googlegroups.com
okay. thank you. i will try it :)

--
You received this message because you are subscribed to the Google Groups "rails_admin" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rails_admin/-/da01gLfQoNQJ.
To post to this group, send email to rails...@googlegroups.com.
To unsubscribe from this group, send email to rails_admin...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rails_admin?hl=en.

Reply all
Reply to author
Forward
0 new messages