I found it myself.
1. Rails.configuration.paths["forms"]
2. I did my own method for now.
def find_form_file(form)
Rails.configuration.paths["forms"].each do |path|
f = "#{path}/#{form}.yml"
return f if File.exist?(f)
end
p "Form file #{form} not found!"
nil
end
by
TheR
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.