User Profile

Collapse

Profile Sidebar

Collapse
nesko
nesko
Last Activity: Apr 29 '10, 04:57 PM
Joined: Apr 29 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • nesko
    replied to working under webrick but not under passenger
    in Ruby
    few last words ...

    Thank you for all your help.

    I have also got this list_users.html .erb:
    Code:
    <h2>Administrators</h2>
    <ul>
    	<% for user in @all_users %>
    		<li><%= link_to "[X]", { # link_to options
    					 :controller => 'login',
    					 :action => 'delete_user',
    					 :id => user
    					},
    					{ # html options
    ...
    See more | Go to post

    Leave a comment:


  • nesko
    replied to working under webrick but not under passenger
    in Ruby
    No problem, I'm really pleased that you are asking questions. Just continue :)

    Did you read my last post because it makes your first question a bit obsolete (with reordering routing rules I was able to add user and log in).

    Now some more details how the error is manifested:

    If I use direct path like /login/add_user I don't get anything in rails log - not a single row though I have config.log_leve l = :debug in...
    See more | Go to post
    Last edited by nesko; Apr 29 '10, 03:53 PM. Reason: misspelling

    Leave a comment:


  • nesko
    replied to working under webrick but not under passenger
    in Ruby
    Update:

    Sorry, I have just moved this
    map.connect 'login/add_user', :controller => "login", :action => "add_user"
    below
    map.add_user 'add_user', :controller => "login", :action => "add_user"
    and now add user is working and I can log in.
    After that the rest of the application is working too.
    Even redirect back and forth (to login when not logged...
    See more | Go to post

    Leave a comment:


  • nesko
    replied to working under webrick but not under passenger
    in Ruby
    Yes it is and it is redirecting to the login_page ... well with this routing in place:

    map.connect 'login', :controller => 'login', :action => "login_page "

    The problem here is that I'm running in test environment and have never got so far to make a proper user I can use to log in (though flash is showing right message so post back is working).
    What I tried was to exclude add_user from before_filter...
    See more | Go to post

    Leave a comment:


  • nesko
    replied to working under webrick but not under passenger
    in Ruby
    By the way I'm using session variables in the rest of the application (mostly for the layout/menu things) and those are working fine.
    See more | Go to post

    Leave a comment:


  • nesko
    replied to working under webrick but not under passenger
    in Ruby
    The problem is that I (the application) will never even come so far (to the login_page) if I try to use full path:
    <app>/login/login_page
    Just 500 Internal Server Error is shown.
    So the problem appears before any session variable is checked/used and therefor I don't see any point in checking session variables.
    What I could conclude is that there is clear routing problem because for instance
    map.connect 'login/add_user',...
    See more | Go to post

    Leave a comment:


  • nesko
    replied to working under webrick but not under passenger
    in Ruby
    Thanks for the reply! :)
    Could you please be more specific about where I should check session variables.
    And why doesn't this problem appear with explicit map.connect routes like
    map.connect 'login', :controller => 'login', :action => "login_page "
    I've checked for instance with:
    map.add_user 'add_user', :controller => "login", :action => "add_user"
    with
    <%= link_to...
    See more | Go to post

    Leave a comment:


  • nesko
    started a topic working under webrick but not under passenger
    in Ruby

    working under webrick but not under passenger

    Hi!

    I have just added login feature to my rails application by following the
    instructions from "Agile Web Development with Rails" but now I am getting
    strange error (looks to me like some kind of routing problem) under the
    passenger/apache. It is working fine under webrick.

    The error is:
    500 Internal Server Error
    The server encountered an internal error or misconfiguratio n...
    See more | Go to post
No activity results to display
Show More
Working...