similar to: Rails not creating session files??

Displaying 20 results from an estimated 10000 matches similar to: "Rails not creating session files??"

2006 Aug 16
44
Goodbye for now, RoR
I started a php-based website a few months ago with a buddy of mine on netfirms.com. I was perusing their knowledge base and I came upon a quick-start for something called Ruby on Rails. Since then I have immersed myself in RoR. I''ve done the tutorials, I''ve purchased the books. But, I could never get even a sample RoR app to work on netfirms. 500 server errors.
2006 Jul 05
1
RuntimeError with Rails Recipe "Authenticating Your Users"
HI, I''ve gotten this Rails Recipe running fine (a bit before I completely understand it) except when the signin is incorrect I return an error(below). All I want is to either have the incorrect signin redirected to "store" rhtml or to a refreshed and empty signin. Any clues??? TIA Chas ######From Browser ##### http://localhost:3000/admin/signin RuntimeError in
2006 Aug 16
5
Rails theory question, where to put a join query
The is something I wrestle with a bit when I construct joined queries.. Perhaps some experienced insight will straighten this out for me. Say you have two tables with two models, ''authors'' and ''posts''. an author has_many posts, a post has_one author. You need methods to do the following queries: find_author(postid) find_posts(authorid) And you are doing a
2006 Aug 01
0
How to retrieve :web when redirecting to an Instiki page?
Hello, I am currently working on implementing some authentification code onto Instiki (0.11.0). I am encountering a problem in this situation : When I try to access say http:/localhost:2500/orz/show/Test , where orz is an instiki web name, I am redirected to my signin form screen (which is what I want) but then upon signing in I get the following message: No url can be generated for the hash
2006 Mar 31
4
I feel stupid - help with Element.show
This isn''t Rails-specific, and I''m sorry for that, but I haven''t been able to get a response in the #prototype/#javascript/#ror channels, nor find anything via Google. I have a form element that I want to be hidden when the page first loads, and appear when a user clicks the link. Here''s the code: <div id=''signin-link''><%= link_to
2007 Jan 06
0
ApplicationController common view
I created a user login system in ApplicationController. There is a def called signin. It needs a view file, signin.rhtml I have a couple of other controllers inheriting from ApplicationController. Where can I place the view file so it is viewable across all controllers? I tried the root view folder but that didn''t work. Right now, I would have to copy and paste the signin.rhtml file
2006 Jan 10
0
LoginGenerator called on Form Submission
I have login authentication set for the submit action of a form. I want the form to be visible to unauthenticated users but when they fill in the form and submit it, I want it to redirect to the login page and then onto the original form submission action after the user is authenticated. This part is easy. The hard part is, how do I pass the parameters collected from the original form
2007 May 03
0
no route found to match "/application/signin"
I''m posting this because I ran into a problem and had difficulty tracking down the answer. In fact, the answer was in another ruby-forum post, but the Search feature didn''t locate it via the keywords I was using. Hopefully my Subject line will help more people find this solution. PROBLEM: I upgraded from Rails 1.1.6 to 1.2.3. When I did something that required me to sign in, I
2006 Jul 11
0
assert_redirected_to not recognizing routes
I''m getting a weird error in a call to assert_redirected_to in one of my functional tests. Here is the test: def test_signin admin = users(:adminuser) post :signin, {:login => admin.email, :realpass => @password} assert_redirected_to :action => ''list'' # failure happens on this line assert_equal admin.id, session[:user].id end The error
2008 Jan 14
0
Controoler/View problem
Hi i''m new with ruby on rails. And i''m trying to build an application with an authentication method, I''m using the Recipe from the book "Rails Recipes". The thing is that i wrote the procedure inside the Login controller class, but when i try to access it I got an exception that say "couldn''t find Login With ID=signin" (signin is the method
2008 Mar 16
1
form_for error
Hi all, I have the following code in my application layout: <div id="utility"> <% if logged_in? %> <%= link_to "Sign Out", logout_path %> <% else %> <%= link_to_function "Sign in", "$(''signin'').toggle();$(''signin_link'').toggle()", :id => "signin_link" %>
2006 Apr 21
1
Catch authentication result from a model in a controller
Im still following the authorization recipe from the book, now all works fine but im getting trouble in how handle the model authorization result, if the user and pass are correct, it goes to a welcome screen(admin.rhtml) but if wrong the model prints a message in an ugly exception like page "usr and pass not correct", i want to redirect the user to the login
2007 May 25
1
form_remote_tag :condition
I am using the following validation prototype-based js library: http://tetlaw.id.au/view/javascript/really-easy-field-validation What I am trying to do is upon submitting a form via AJAX, I want it to meet the conditions of the validation of the function validateMe() If it passes, go ahead and continue and push the form information via an AJAX call. This is what I have: <% form_remote_tag
2006 Mar 14
2
no such file to load -- login_system
I''m hoping someone can help me out here. My application works fine locally using webrick. One I upload to my shared server space I get an application error saying rails has failed to start. The log file production.log reads as follows: MissingSourceFile (no such file to load -- login_system): /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__''
2006 May 27
2
NameError / active_support/dependencies
hi everyone in my dev machine, everything works flawlessly now when i uploaded my website on the server, it cannot acces User model anymore. all other pages work by the way. when i try to access User on console or by web, it shows: NameError in UsersController#signup uninitialized constant User /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in
2009 Jun 05
6
rails 2.3.2
Hi all, I am using rails v.2.3.2 and if I put following line to my ApplicationController: include LoginSystem and I moved my login_system.rb to lib folder: module LoginSystem protected def is_logged_in? @logged_in_user = User.find(session[:user]) if session[:user] end def logged_in_user return @logged_in_user if is_logged_in? end def logged_in_user=(user) if
2012 Mar 08
0
Safari Version 5.1.3 (7534.53.10) Browser problem --- removing cookie on OS X Lion 10.7.3 (11D50b) when still valid
Hi All, Hope this note helps the newbies to Rails As I''m new to Rails, I''d like to share how I tracked down Safari''s dropping of my cookie. My Applebug no: 11003492 registered 7 March/2012 My development platform: MacPro running rails 3.1.1 on OS X Lion 10.7.3 (11D50b) Problem: Firefox worked as programmed but switching to Safari my current_user_token kept in the
2006 May 26
2
Rails app fails to start with LoginGenerator
Hi guys I was following this: <a href="http://wiki.rubyonrails.com/rails/pages/LoginGenerator">tutorial</a> and everything was perfect until I run the script. I''ve got: <strong>MissingSourceFile</strong><br /> no such file to load -- user.rb <br /> RAILS_ROOT: script/../config/.. <br /> <pre><code>
2007 Oct 05
2
Stories VS Scenarios
Hi all, I have read Dan North''s post ''Whats in a Story?'' (http://dannorth.net/whats-in-a-story) but I am still having a hard time knowing when I should break requirements up into separate stories or keep them as scenarios. I am currently trying to write a story (stories) for the registration process of a site. The registration process is a multistep process that
2006 Dec 01
0
You are being redirected message
Ticket #3082 details a fix to add a body to redirect pages. This seems like an old patch, but only now is it biting me. I have an authentication scheme like this: class ApplicationController < ActionController::Base before_filter :check_authentication, :except => [:signin] def check_authentication return true if session[:user] session[:return_to] = request.request_uri if