[typo] Admin controller hacking
wyldeone at gmail.com
Sat Dec 3 23:28:34 EST 2005
The arguement that the script.aculo.us scripts use refers to the id of the
div to which the effect is to be applied. So, to make your example work you
would have to have the partial be:
<div id="messages"><p>Changes published</p></div>
My js isn't very good, and I'm not sure that it can be placed just in the
On 12/3/05, Tracey <tenthconcept at gmail.com> wrote:
> I have been spending some time learning Rails and I thought one of the
> ways is to contribute to typo. My first thoughts were to clean up the
> When you "Publish Changes" in the admin sidebar controller it uses render
> :partial=>'publish' to flash the message "Changes published."
> I think it would be a good idea to use this in other controllers. For
> in the theme controller, you recieve no feedback when you activate a new
> Just to do something quick, in themes_controller.rb, I added render
> :partial=>'publish' to switchto():
> def switchto
> setting = (Setting.find_by_name('theme') or Setting.new("name" =>
> setting.value = params[:theme]
> render :partial => 'publish'
> redirect_to :action => 'index'
> and I then inserted _publish.rhtml in /app/views/admin/themes with this
> <p>Changes published</p>
> Nothing happens with these changes. What could the problem be? Is there
> another way of accomplishing this? I am new to Rails and programming, so
> help, thoughts or ideas are greatly appreciated.
> Typo-list mailing list
> Typo-list at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Typo-list