search for: welcome_controller

Displaying 3 results from an estimated 3 matches for "welcome_controller".

2006 Jan 07
2
app no longer runs - MissingSourceFile for any controller
Hello all. I somehow managed to break my rails app running under Apache 2 with fcgi. With any action I try, it throws an exception saying it can''t find the source file. For instance, requesting an action in my welcome_controller results in: MissingSourceFile in <controller not set>#<action not set> No such file to load -- app/controllers/welcome_controller.rb The log doesn''t show anything, except the exception backtrace (below). But, the application works fine using webrick. Further, I''ve...
2011 Jun 09
8
Fail to call
...ery helper_method :current_user private def current_user_session return @current_user_session if defined?(@current_user_session) @current_user_session = UserSession.find end def current_user @current_user = current_user_session && current_user_session.user end end #welcome_controller class WelcomeController < ApplicationController def hi @current_user if (@current_user) @welr = ''¡Bienvenido'' + @current_user + '' a nuestra web!'' else @weli = "¡Bienvenido invitado, no dude en registrarse!" end end end...
2010 Jul 08
1
[Rails3] Issue in modifying locale and redisplaying page
...:selected"); var value = selected.val(); $.ajax({ data: ''locale=''+ value, type: ''post'', url: ''/locale'' }); }); }); routes.rb match ''/locale'' => "welcome#switch_language" welcome_controller.rb .. def switch_language I18n.locale = params[:locale].to_sym redirect_to root_url end what could be wrong ? thanks fyh -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrai...