similar to: migration to restufl authentication

Displaying 20 results from an estimated 50000 matches similar to: "migration to restufl authentication"

2009 Jan 07
1
bet way to debug a plug-in?
Hi, Yesterday I had to walk through the code of a plug-in and perform a minor fix. I confess that I didn''t like the experience. Because the plug-in is in the vendor directory, I had to restart the web server whenever the code changed. How can I debug a plug-in without having to restart the web server whenever the code changes? Thanks, Tiago Franco
2006 Jul 10
1
Migration and foreign keys
Hi, I''m using the ''rake db_schema_dump'' command to clone the structure of the developement database into the test database. Unfortunatelly, the schema.rb file doesn''t contain any information about the foreign keys of the tables. For this reason all the test that concern about the relations are not working has suposed. Is this a limitation of Rails or am I
2007 Sep 11
2
acts_as_authenticated redirect on ajax requests
Hi there, I''d like to know if there is a solution to the scenario when using acts_as_authenticated and ajax: I have an action in my controller which is protected by login via acts_as_authenticated. Now, this action can be called both by human interaction, as well as ajax requests. (It is an add to cart link). It works great as long as I am in an authenticated session. Now, I want to
2006 Oct 26
0
Recipes authentication & validates_presence_of
I''ve implemented Rails Recipe #31, Authentication, and I found that validating password and password_confirmation just doesn’t work while the method ‘password=(pass)’ is in the mix, but I need that for the salt/hashing, no? If I don’t use validations, the password gets hashed, salted and stored in the database fine. I can login with same username/password. However, if I want to
2007 Feb 10
5
acts_as_authenticated strangeness
hi the strangest thing is happening. on my local machine acts_as_authenticated works fine, but whe on the server [dreamhost] it refuses to log in. no error messages. nothing. just reloads the login page again. here`s my action: def login return unless request.post? flash[:notice] = "Incorrent login" self.current_user = User.authenticate(params[:login], params[:password])
2006 Jul 04
1
Select Box problem in the controler with Ajax
Hi, I have a selectbox that updates a given span area when a user selects a value. The selectbox has the option :include_blank => true. The controler will fetch the ID of the selected option in the combo box and sends the description of the item with the same ID. The problem is that the user is able to select the empty option, and the controler will not be able to fecth the ID. This
2006 Jul 06
1
Laszlo DHTML on Rails?
Hi, I''m trying to get a big picture about what can be done with the mix of these two technologies. My idea would be to use the power of Rails to provide the model and controller functionalities, and use Open Laszlo for the view design. This would provide a better abstraction level for the development of the GUI. Can someone provide me an idea if this is possible what are the
2007 Jun 29
0
acts_as_authenticated, reset_session, and redirect_back_or_default
Just a question and an FYI I just installed rails and acts_as_authenticated and was setting up a site. Everything works fine except that in the AccountController that I generated the calls to the routine redirect_back_or_default don''t work because the call just before it to reset_session clears the session[:return_to] that the method uses to set where it will redirect. I ended up adding
2007 May 08
2
Install plugin acts_as_auth.. no access to techno-weenie.net
please help me get this plugin installed... I have no access to techo-weenie.net due to a firewall blocking the weenie crap in its domain name. more specifically, i''m trying to do this: script/plugin install http://svn.techno-weenie.net/projects/plugins and it bombs. On a machine w/ access to this repository, I did an svn checkout and tar''d up the contents... then
2006 Aug 22
0
Re: Swiss Hosts for Ruby on Rails
Why exactly does your customer want a Swiss host? Is it for "patriotic" reasons, or do they think it''ll be quicker? If they think it''s going to be quicker, you should let them know that with an American host the difference would be negligeable and with a German host, it would be pretty much impossible to measure a difference. But, if using a swiss host is really
2007 Apr 28
0
script/plugin and http-proxy with Authentication
Hi group, my gem ist working like a charm with http_proxy (and friends) environment-variables as described here http://blog.pomozov.info/posts/the-end-of-gem-vs-proxy-war.html But I have a problem (on windows) with ------------------------------------------------------------------------------ > ruby script/plugin discover c:/ruby/lib/ruby/1.8/open-uri.rb:287:in `open_http'': 407
2008 Jan 04
3
session auth and AWS auth
Hello I have 2 applications (1 normal, 1 Beast Forum) that set the session domain to be the same so that they can share information between them (they use the same database). However, i am not 100% clear on how I can expose the controller methods to each of them through normal HTTP Auth, and keep the normal acts_as_authenticated pieces in place at the same time? Is there a way to distinguish
2007 Dec 08
3
ROR 2.0 & undefined method `table_name'
Hi all, I''ve got stuck with this. Here''s the error message: NoMethodError in Account#index Showing account/index.rhtml where line #4 raised: undefined method `table_name'' for Upload:Class Extracted source (around line #4): 1: <h1>My account</h1> 2: 3: Login name: <%= current_user.login %> <br /> 4: Files uploaded: <%=
2009 Apr 04
1
JRuby on Rails
Hi This is my first post, and i would like to know if here we can talk about JRuby on Rails too, or just Ruby on Rails. If we can talk about JRuby, i would like to ask about a problem. I have installed the lastest version of jruby, rails, and activerecord for jdbcmysql adapter. When i run: # rake db:create Anyone error messages apper, and anyone database is created. Is this a know issue?
2007 Mar 26
2
Strange Record not saved errors
I have a site with an acts_as_authenticated based login which has started throwing up some strange errors. Until a few days ago everything worked fine but all of a sudden ''RecordNotSaved'' errors are popping up in my logs. When I check the database, it looks like the record _is_ saved but I think users get an error so I''m starting to see a lot of double/triple entries
2008 Dec 11
2
restful_authentication errors
When I run [code] script/generate authenticated user --include-activation [/ code] it seems to work at first, but then it reports: " The name ''SessionsHelper'' is either already used in your application or reserved by Ruby on Rails. Please choose an alternative and run this generator again " I''ve heard that having both acts_as_authenticated and
2007 Jan 09
1
assert_redirected_to not working as expected
I''ve installed the "acts_as_authenticated" plugin and made some modifications to the controller (app/controllers/account_controller.rb) "signup" module as follows: === def signup @page_title = ''Create Account'' @user = User.new(@params[:user]) if request.post? if @user.save session[:user] = User.authenticate(@user.login,
2007 Feb 21
1
setting session data from a post
I''m using acts_as_authenticated, and I''m trying to run some tests where the user must be registered. In the past, I''ve just included a user id in the session data. def test_login_loads_from_post_session post :new, nil, { :user => 7 } session = assigns(:session) assert_equal 7, session[:user] end My assert statement seems to be failing because my session is
2008 Feb 11
6
Should I Test My Fixtures?
I have a number of fixtures in my test suite. For example, with acts_as_authenticated and acts_as_state_machine, I created a number of users in different account states for use in functional testing. (Suspended users can not log in, etc) Is it a good idea to run fixtures through tests to ensure that they conform to their ideals? EG: assert users(:suspended_user).suspended? If so, where should
2007 Dec 18
3
MySQL transactions not working in unit tests?
I just installed acts_as_authenticated into an app and one of its unit tests is failing. The cause is that another unit test''s changes to the AAA fixtures aren''t being rolled back. I''m confused, since I have transactional fixtures turned on and MySQL InnoDB engine being used. Details: - MySQL 5.0.24. InnoDB is the default engine, all tables in the test db are using the