Displaying 3 results from an estimated 3 matches for "my_app_root".
2005 Dec 14
3
Multiple rails apps to appear as one app
Hello everyone,
I have a problem concerning two rails apps, which I can''t seem to solve.
I already tried the Ruby On Rails IRC channel. I also started a thread
at the Site5 forums:
http://forums.site5.com/showthread.php?t=6682
As is described in
http://wiki.rubyonrails.com/rails/pages/HowtoDeployMoreThanOneRailsAppOnOneMachine
, I would like two separate Rails applications to
2010 Aug 14
0
[rails3.0.0.beta4] extend form_tag to always include a hidden field
hi there,
I want every form in the site to add a hidden_field, basically I want them
to always submit the I18n.locale, I''ve tried to alias form_tag_html method
of ActionView::Helpers::FormTagHelper like this:
# in #{MY_APP_ROOT}/lib/action_view/helpers/form_tag_helper.rb
module ActionView::Helpers::FormTagHelper
def form_tag_html_with_locale(html_options)
form = form_tag_html_without_locale(html_options)
form.safe_contact(hidden_field_tag(''locale'', I18n.locale))
end
alias_method_chain :for...
2005 Dec 04
3
Relative URL
I''m trying to use a non default webserver with Rails and succesfully
does this by calling the disptacher directly, by setting the environment
variables: REQUEST_URI and SCRIPT_NAME
My problem is that the relative path is incorrect when I identify myself
as anything else than apache. In request.rb the @@relative_url_root is
only set when the webserver is apache. Is this default wanted