change def global_prefs in app/helpers/preferences_helper.rb to:
def global_prefs
p = (Preference.count > 0) ? Preference.find(:first) :
Preference.create
return p if test?
@global_prefs = p
end
--~--~---------~--~----~------------~-------~--~----~
Insoshi developer site: http://dogfood.insoshi.com/
Insoshi documentation: http://docs.insoshi.com/
You received this message because you are subscribed to the Google
Groups "Insoshi" 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/insoshi?hl=en
-~----------~----~----~----~------~----~------~--~---