similar to: Assigning user''s session ID to a sub-sub-group

Displaying 20 results from an estimated 30000 matches similar to: "Assigning user''s session ID to a sub-sub-group"

2006 Jun 30
0
Assigning user''s session ID to a sub-table
Hi. I''m using LoginEngine to manage session info. On this site, I''d like users to be able to create groups, and then allow other users to sign up. The approach I''m taking is putting a "join" link on the "show" page for a group, and then adding the user as a member in the Group controller. There is a sub-table for groups called "members"
2006 Jun 08
2
LoginEngine: undefined method `generate_security_token''
Hi there, I''m trying to set up LoginEngine with Rails 1.1.2 on Ruby 1.8.4 on a Windows XP box and the log is reporting: undefined method `generate_security_token'' for #<User:0x39436a0> Rendering user/signup Rendered user/_edit (0.01600) Rendered user/_password (0.01600) Rails appears to be failing on key = @user.generate_security_token in user_controller.rb in the
2006 Jan 22
0
Problem with change_password action in LoginEngine
Hi, I just setup the Login engine and everything seems to be working... but the change_password action. The fact is that the user receives the mail telling him to visit the app''s change_password page in order to enter a new password, but I get an undefined method error in my controller when rendering <%= error_messages_for ''user'' %>. Tracking down the issue, I
2006 Jul 28
1
long waiting time for first page due to session[:user]
hi everyone i am developing http://sprinj.com it uses a login system, quite simple, really, similar to loginEngine the problem is that takes way too much time to access the first page. when i desactive the login system, there is very noticeable difference (about 2 to 3 seconds), and people who visited the website complained about this. is there something i can do to speed the sessions checkups ?
2006 Apr 27
3
LoginEngine File_column interop
-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Hello all, I hope someone can help me with this issue, I have the SVN file_column and using LoginEngine/UserEngine with Rails 1.1.2. My issue is that I''m overloading the view for LoginEngine to support a file image upload as part of the user record and having a heck of a time doing so. Near the bottom of my new _edit.rhtml
2006 Feb 15
4
problem with saving id''s in a join table
hello, I''am new to ROR and I have a problem. I have to models "rights" and "roles" on a has_and_belongs_to_many relationship, through "roles_rights" table. When I try to add a new role although I put in my form fields for each right, a record is added to table roles but none to roles_rights. I am using Ruby 1.8.4 rails 1.0 mysql 5.0 here is my code:
2013 Jan 18
1
redirect_to(session[:return_to]) vs session.delete
Hey all, Recently I''ve been looking into on how to return back to a previous referring URL and and the most common approach is: redirect_to session[:return_to] But some recommend: redirect_to(session.delete(:return_to) || default) How I understand it, in the second example we call session.delete so it will clear the return path since we will no longer need it, and we also use
2006 Jul 04
3
Engine Not Starting
I''ve used login_engine successfully before with webrick, and now using a provider that uses fcgi. login_engine doesn''t seem to start up, in the development log file, I get only routing errors for the page requested. The login_engine unit tests pass fine. My question is if an engine is not loaded, not in a path, etc, how is this indicated in rails? None of the log files even
2005 Dec 29
2
has_many & belongs_to with Plugins (login_engine)
Hello list, Probably a newbie question but couldn''t find the answer in the archives. I am using the login_engine Plugin to implement the login functionality. I have a JournalEntry model that interacts with the journal_entries table. I would like to link the journal entries to the user who entered it. Essentially, it is a one to many relationship between the model User(from
2006 Aug 09
4
checking session -newbie
hello! i have a problem checking a session. i want to check if the session exists, and then redirect somewhere, but in the if-loop, if the session doesnt exist, i become an error im trying to do something like: if @session[''user''] == nil redirect_to ... else redirect_to ... end but as i said, the loop doesnt work, because i become the error before it checks. how can i
2006 Mar 11
2
ActiveRecord increment confusion
Part of my application counts the number of times a link was clicked. The Link.click function should increment the @link.clicks attribute. I assumed def click @link = Link.find(params[:id]) if @link.increment(''clicks'') redirect_to @link.url else flash[:error] = ''Could not update clicks'' redirect_to :action =>
2006 Jan 16
2
LoginEngine vs. LoginGenerator?
I just saw a mention here of LoginEngine, which I hadn''t heard of before. Last week when I was digging for user-account sample code for my web-app, I instead found the LoginGenerator and started using that: http://wiki.rubyonrails.com/rails/pages/LoginGenerator Is one of these preferred over the other? From skimming the API docs, it does seem that LoginEngine has more features,
2006 Apr 28
0
UserEngine + User Profiles
[Cross Posted in Rails Engines] I''m taking a new approach to how I view user data, I think in the end it will be faster for the system anyways... What I''m doing is using LoginEngine/UserEngine combo on my site for authorization, and I want each user to have a profile that they edit and maintain. Each user would have 1 profile. My question is getting my profile and my user
2005 Dec 15
3
Another session question
I want to give a user a form to create a new Product, but instead of persisting the product to the database I want to store it in a session first for category assignment, etc.. (in other controllers) So when the user describes the product on the form I have a "Save and Continue" button pointing to the action add_to_product_factory: def new_product @product = get_product end
2007 Jul 20
3
Mozzila Logout back button issue
Hello, I have recently created an application in Rails which makes use of a login and logout system. I have a user controller and model as well as a login controller. My login controller performs my logout and login functions. The user is a scaffold of my database table and is auto generated from rails. def process_login #Creates the user with the form variables i have not included the
2006 Jul 04
1
LoginGenerator Problem
I am trying to make a barebones login system based on this example (which in turn is just standard RoR login) but when I enter a user name and password, it says the login is unsuccessful every time. I am not sure where I am going wrong. Here is all relevent information CREATE TABLE `users` ( `id` int(6) unsigned NOT NULL auto_increment, `login` varchar(20) NOT NULL default
2008 Feb 19
0
(PR#10799) Assigning a sub-matrix from a data frame to a
Where precisely is the bug here? If you assign a list (d[,1:2] is a list: it is the whole data frame) to a numeric matrix you coerce the latter to mode list, and that is what happened. If we have the simpler version d <- data.frame(v1=1:2,v2=3:4) x <- matrix(0, 2, 2) x[] <- d it may be easier to see what happened. I think the problem is in your subject line: d[,1:2] is _not_ a
2006 Jul 03
0
Fwd: Models and Backgroundrb
Seems this mail did not make it to the list for some reason. It contains my solution for the problem with login_engine without having to load the whole Rails environment. Begin forwarded message: > From: G?nter Ladwig <gladwig at gmx.de> > Date: 22. Juni 2006 23:51:18 MESZ > To: backgroundrb-devel at rubyforge.org > Subject: Re: [Backgroundrb-devel] Models and Backgroundrb
2006 Apr 16
9
''depot'' app, where''s session?
Many of you probably know the ''depot'' app from the ''Agile Rails development'' book. I have constructed the ''products'' model, the Store-controller, and the ''Cart'' and ''Line Item'' classes. I have told Application-controller about :cart and :line_item: model :cart model :line_item Here''s part of
2006 Jun 22
1
Models and Backgroundrb
Hi Erza, I am using login engine in my code...and i get the error "uninitialized constant LoginEngine and uninitialized constant LoginEngine", when i try to do a find in the worker code!!! Why am i getting this error? -- nothing much to talk -------------- next part -------------- An HTML attachment was scrubbed... URL: