Ruby on Rails - Unable to see the console message -


This is probably a really silly question, but I'm Ruby on Rails Novice ...

. In some of the RB files, I put

  in "Hello"  

Where can I write something? I am running Rails console and message is not visible in the shell when code runs. It is also not visible in Chrome console

Thanks!

Edit I think there is a problem with my code, so I have:

login.html. Erb:

  & lt;% @page_title = "UserAuth | Login" -%> & Lt; Div class = "sign_form" & gt; & Lt; H1 & gt; Sign in & lt; / H1> & Lt;% = form_tag "/ login" ,: session = & gt; : Login Connect% & gt; & Lt; P & gt; Username or Email: & lt; / Br & gt; & Lt;% = text_field_tag ​​(: username_or_email)% & gt; & Lt; / P & gt; & Lt; P & gt; Password: & lt; / Br & gt; & Lt;% = password_field_tag: Login_password% & gt; & Lt; / P & gt; & Lt;% = submit_tag ("Sign In")%> & Lt;% end% & gt; & Lt; / Div & gt;  

session_controller.rb:

  class session controller & lt; ApplicationController before_filter: authenticate_user ,: only = & gt; [: Home,: profiles, settings: before_filter: save_login_state ,: only = & gt; [: Login, Login Login] DIF Login # Login form & DEF login_tft authorized_user = user Authentication (Paramus [: username_Or_mail], parameter [: login_password]) "authorized-user" + authorized_zer + "\ n" # authorized_user session [: user_id] = authorized_user.id flash [: alert] = "Wow is welcome again, You are logged in as # {authorized_user.username} "redirect_to (: action = & gt; 'home') and flash [: warning] =" invalid username or password "flash [: color] =" invalid "render "Login" end and off logout session [: user_id] = zero redirect_to: action = & gt; 'Login' and end  

You can call it server console where You ran the rail server command


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -