similar to: auth_generator 2.0.1 undefined method `login_required' for ... ArticlesController

Displaying 20 results from an estimated 100 matches similar to: "auth_generator 2.0.1 undefined method `login_required' for ... ArticlesController"

2005 Dec 15
2
Auth_generator: to handle users
Hi everyone, I have made an announcements few weeks ago about auth_generator. As we released few versions since, I send another one on the list. The auth_generator gives you an admin interface to handle users, can display user informations on static pages, allows you to choose what crypting algo you want to use (you can use a salt per account if you want for better security) and much more. You
2006 Jun 19
2
Auth_generator and domains
Hello all, Thank you for your help in advance.I am working with the auth_generator and see that the "roles" are domains. I am unsure how to add domains to the system and then control who is in what domain. Any help with this or an explanation of how domains work is greatly appreciated. Thank you in advance. Sincerely, Robert Dempsey -- Posted via http://www.ruby-forum.com/.
2005 Dec 23
3
auth_generator and GD woes
Hi All, I am trying to use the auth_generator package and am having problems with the GD requirements. So, while I realize this is tangental to rails, I am hoping someone may have some insight for me. I get the following error when trying to update my account info: MissingSourceFile in Account#info no such file to load -- GD RAILS_ROOT: script/../config/.. Application Trace | Framework
2003 Jul 08
2
LDAP bind questions
Hello, I've got dovecot set up to authenticate against our LDAP server. So far seems to work well. I have two concerns that I haven't been able to find answers for in the documentation or archives. Is there any intention to support "authentication binds" so you don't have to bind as a user with read privileges to everyone's userPassword attribute? For security
2011 Mar 30
3
Test errors in fuctional test after adding before_filter :login_required to controller
Hello, I added the "before_filter" to my controllers to require a login of the user. Here''s an example of my Unit Controller with the added before_filter: IN THE ATTACHED FILE When executing the tests with rake test, I get different error messages. To show you my errors, I only executed the unit controller test with the following line: ruby -Itest
2005 Aug 17
4
Stop an action ?
Hi. I am working on a generic authentification system for rails (more complete than the login generator). The way it works is you call a method inside your action, passing the domain as a parameter (domains are like a group of users with specific rights). For that purpose, I need to exit the action inside this method because it redirects to a login page if that person isn''t
2006 May 09
3
Need Login/Authorization/User Management Advice
I''m new ot rails and am revamping one of my first rails projects and would like some advice on user authentication and management. In my app I implemented the basic user login functionality as it is in the Agile Web Developement book. Though it works great I''d like a bit more functionality such as: user levels/roles (i.e level1, level2, level3, admin) type permission,
2006 Apr 27
2
problematic admin/views
ok, i have a pretty almost finished (frontend) blog, i have defined an admin zone with authentication to add content, now im getting trouble with the views for the controllers in the admin zone, here you can see my file structure: http://img284.imageshack.us/my.php?image=tmpviews6oq.gif and my admin controllers like this: controllers/admin/admin_controller.rb class Admin::AdminController
2010 Dec 15
5
Having trouble testing :( "superclass mismatch" and can't load "test_helper"
I''m having trouble testing my Rails 3 application. Unit testing doesn''t work. If I try ruby article_test.rb directly, I get a "no such file to load" error, and if I try rake test:units or ruby unit/ article_test.rb I get this odd "superclass mismatch for class ArticlesController" error! I''m hoping I can get this settled... My test files were
2007 Dec 03
18
Need help mocking this out
Let''s say you''re using the restful_authentication plugin. You have a model called articles. On the index action of the articlescontroller you simply want to spec out that it''ll scope the results to the ownership of the current_user. It should NOT include any articles other than the articles that user owns. How would you properly spec this out? Thanks for the help!
2006 Mar 14
2
Only allowing areas of site to users using authentication
I have a site in development where I only want specific users to access specific items that uses belongs_to and has_many. Say we have this kind of structure. Person <belongs_to + has_many> Items When person logged in they only have access to items that belongs to him/her. I''m using auth_generator but only seem to put an auth inside controllers and dont know how to go any
2008 Jul 01
8
Scaffolding: Create, Edit, Destroy in admin area
Hi Community, I''m currently trying to create a blog software in rails, but I''ve got a problem: I generated scaffolding for my articles and only want administrators to write, edit or delete articles. So I wanted to move this parts to another, secured controller. The one controller to display articles is called articles :), the other is also called articles, but is located in a
2006 May 30
3
Help about CMS - newbie in RoR
Hi team, I''m a very newbie RoR user from Spain and I''m developing a blog''s CMS. Why RoR?, coz I think it''s an amazing framework with many posibilities, portable and really powerful, with a young and optimist community, and taking my project I''ve prefered his structure in front of LAMP. Another thing is that I''ve liked to surprise my masters
2012 Apr 17
6
ActiveRecord with different Date/Time format
I have an application where user sets his/her preferred date/time format. User is expected to enter datetime in his preferred format across the application. Now the problem is for few formats the datetime is parsed wrongly while create/update ActiveRecord. For example user has set date/time format in hh:mm dd/MM/yyyy. Now if user enters 17:00 04/05/2012 it parses it as 5 PM 5 Apr, 2012 where it
2006 Jan 04
2
Array problem
I''m having a difficult time looking @user[:domains] from auth_generator. Here is the output from debug: debug(@user[:domains]) will print out: --- TESTERS: "1" ADMIN: "1" But if I use @user[:domains][:TESTERS] it returns nil. How would I go about accessing the level of each of the domains? Thanks. -- Posted via http://www.ruby-forum.com/.
2010 Aug 05
3
how to ? Rails 3 ActiveRecord eager loading and AREL
Hello everyone, I would like to eager load scoped records to avoid queries executed in a loop (huge performance impact). The "scoped" part is what is giving me a hard time. I''m using Rails3 RC. Does anyone have any idea how I can do it? Here is a test case : we have an "Article" and a "Comment" Activerecord models, article has many comments comment
2006 Jan 03
7
best authorization?
Hello, I want to allow some users to manage other user accounts, but do not want them to manage the admin account. I have tried auth_generator, login_engine and user_engine I am having a hard time gettign this to work. Looking for advise and help. Thanks Frank -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 May 23
8
Rails Rendering diagnostics.rhtml in Controller Spec
Forgive me if this isn''t the proper list. It''s specific to the rSpec Rails plugin. The problem is, some controller actions are rendering the "diagnostics.rhtml" template when I''m expecting it to render something else in a controller spec. I''m assuming this is the template that displays the error message and a stack trace when an error is raised in the
2006 Jul 01
0
Tallysheet Design Suggestions
Hi all, I am a system administrator new to Ruby and Rails. I have developed a simple web-based tallysheet program with the following tools: view: phpFormGenerator controller: Bash, Gawk, and other Linux utilities model: Flat file (Just playing with what i''ve learned about Rails) :-) Here''s a sample snapshot of the application:
2006 Apr 07
0
How to combine rjs with ActiveView::Helper?
Suppose in controller: class ArticlesController < ApplicationController def search ... render :update do|page| page.replace_html ''panel_tab_searchresults'',:partial => ''article'', :object =>@articles end end And i want to add ajax styled Paginator to the view,i have got the method and i can work well directly used in view: