You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been having difficulty with the put_section() method.
get_section works fine.
@page = Page.find(params[:id])
if params[:section]
section = @page.wiki.get_section(params[:section])
@page.section_content = section
end
But when I try to do:
@page = Page.find(params[:id])
if params[:section]
wiki = @page.wiki
wiki.put_section(params[:section],params[:section_content])
@page.content = wiki.to_wiki
end
#normal rails save here...
It does nothing. Also tried to get it to work in the console with no luck. ;-(
Wiki method in model
def wiki
data = WikiParser.new(:data => content)
end
The text was updated successfully, but these errors were encountered:
I've been having difficulty with the put_section() method.
get_section works fine.
But when I try to do:
It does nothing. Also tried to get it to work in the console with no luck. ;-(
Wiki method in model
The text was updated successfully, but these errors were encountered: