Displaying 2 results from an estimated 2 matches for "page_versions".
2005 Mar 17
2
Using gettext to localize your rails app
...controller. If I want
to use it in say editor.rhtml I have to do this:
# app/views/blocks/editor.rhtml:
<% bindtextdomain(''messages'', "#{RAILS_ROOT}/locale", @locale, @charset) %>
This is true for any view and partial, meaning I have to do it in
app/views/block/page_versions.rhtml, too, if I want the strings to get
translated in there.
I had a workaround which worked nicely, but is hardly the right way to
do it. In ApplicationHelper i had:
def _(text)
bindtextdomain(''messages'', "#{RAILS_ROOT}/locale", @locale, @charset)
GetText._(text)
en...
2005 Dec 27
4
acts_as_versioned
Hi,
I'm integrating acts_as_versioned (ar-versioned.rubyforge.org) in my
customized CMS rails application to set up revision control for pages.
Getting and viewing versions works allright, but when I try to revert
to a version in the following way, nothing happens to the actual data
in the object.
Link from page:
<%= link_to image_tag('revert'), :action => 'do_revert',