similar to: Modules, controllers and inheritance

Displaying 20 results from an estimated 500 matches similar to: "Modules, controllers and inheritance"

2006 Jan 23
2
UserEngine -- Permission.synchronize_with_controllers -- trouble with my own controller modules
I suspect there''s an easier version of this question that I could ask, but I''m not sure where I''m going wrong. I have LoginEngine and UserEngine setup and seemingly running fine. However, not all of my controllers are being found when I run "rake sync_permissions". Specifically, it''s the controllers that are not in the base controllers folder, but
2005 Dec 29
2
Login plugin
All- I am new to Ruby; following are my two questions: 1. Which is the best login plugin? I keep hearing about SALT and loginengine. 2. For installing loginengine; I see the two following steps - Both these does not work for me. : $ script/plugin install login_engine ==I am getting "script/plugin is not a internal or external command, operable program or batch file"
2006 Feb 26
7
LoginEngine problems
I''m trying to get a simple authentication system going for a small rails app. After much research, it looks like LoginEngine should do exactly what I want. Now, the documentation is somewhat confusing to me when looked at in the light of reality. There are some places that say you have to install the "engines" plugin. But, I cannot find such a beast. So, I installed the
2006 Jul 26
4
How to Install Engines?
I am trying to get this enginer to work....and I am not sure how to install the engine? could someone please give me some instructions with regards to this.... http://rails-engines.org/wiki/pages/DateboxEngine for example in the website above The Engines plugin or the EdgeEngines plugin * Engines 1.0 script/plugin install http://opensvn.csie.org/rails_engines/branches/engines/ *
2006 Jan 25
14
Salted Hash Login Generator
Does this work with rails 1.0 ? I saw that people said it failed with rails 14.1, which practically identical. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060125/5da24694/attachment.html
2005 Dec 02
8
UserEngine: stack level too deep
Hi, I''m trying to get the UserEngine running. I have installed the LoginEngine, added the essential lines to environment.rb / application.rb and application_helper.rb. Worked fine. Then I did the same with the UserEngine and when trying to set up the db: rake engine_migrate ENGINE=user I get: Migrating engine ''user_engine'' rake aborted! stack level too deep But...
2006 Jan 11
14
User Engine/General Engine issues
I''m trying to get the login/user engine combo up and working and am having difficulties. I got the login engine up and running fine, no problems. Now, on to the user engine. After fixing the needed stuff in the bootstrap task so it loads I''m able to login as the default admin ok. BUT none of the views/controllers that are in login/user_controller are being overridden by the
2006 Apr 04
1
Calling a method in another controller
Hi, I have three controllers. I have defined two controllers to goven the site functions. However I want to have a homepage Controller. Part of the controller will call methods from other controllers. For example it will get the last 5 blog posts and it will get the top 5 most discussed articles, and display it on the homepage. I will also have some specific homepage modules being
2006 Mar 20
3
login_engine
Hello, I''m having trouble getting login_engine to work properly. I get the standard login/registration views, but whenever I try to register I get: NoMethodError in User#signup undefined method `password_confirmation='' for #<User:0x408b2f9c> I have login_engine, and engines installed from cvs: http://opensvn.csie.org/rails_engines/plugins/ anyone else had anything
2005 Dec 29
5
help with installing login_engine
Hello, I did a script/plugin discover then script/plugin engine then script/plugin login_engine The discover worked, but I get engine and login_engine not found. I am using a Mac Thanks Frank
2006 Feb 01
2
Need clarification for Rails Engines SVN repository
Hi all ! Could someone tell me what''s what in the Rails Engines Subversion repository ? There are many folders where the Rails Engine is located, and from the folder names alone, I can''t really guess what''s what. For example, the rails engine plugin is situated at: plugins/engine engines/trunk branches/engines branches/edge_engines From the log, I gather
2006 Jan 20
1
stack level too deep from has_many / belongs_to relationship
I have the following 3 models (2 models joined by an intermediate): 1. class Exercise < ActiveRecord::Base 2. has_many :routines, :class_name=>''RoutineExercise'' 3. end 1. class Routine < ActiveRecord::Base 2. has_many :exercises, 3. :class_name=>''RoutineExercise'', 4. :order=>''position'' 5. end 1. class
2006 Jan 12
2
Engines issue: rake test_plugins failing when it shouldn''t
I create a simple engine with a simple controller: class FredController < ApplicationController def hello render :text => ''Hello, world!'' end end and I create a simple functional test within the engine: class FredControllerTest < Test::Unit::TestCase ... def test_hello get :hello assert_response :success end
2005 Dec 21
1
Engines Generator & Howto Extract an Engine
= Engines Generator = Now part of the Engines plugin, you can generate your very own engines. $ script/plugin install engines $ script/generate engine MyEngine = Howto Extract an Engine = I have also written a little documentation on how to extract an engine out of an existing application: http://rails-engines.rubyforge.org/wiki/wiki.pl?ExtractAnEngine = Changelog =
2006 Jan 07
2
app no longer runs - MissingSourceFile for any controller
Hello all. I somehow managed to break my rails app running under Apache 2 with fcgi. With any action I try, it throws an exception saying it can''t find the source file. For instance, requesting an action in my welcome_controller results in: MissingSourceFile in <controller not set>#<action not set> No such file to load -- app/controllers/welcome_controller.rb The log
2006 Jun 07
0
Adding ''author'' functionality to UserEngine / RBAC roles
I''m trying to add / extend the default UserEngine schema (Guest/User/Admin) to support author only Update/Delete functions. At the moment, I allow ''Guest'' to read/view all records, and User additionaly has access to create/edit/destroy, however this means that any registered user is able to modify any record. My first thought was to add another filter in the chain
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
I've pulled out the no-longer-necessary remnants of the old way of handling auth and before_filters as well as fixing a couple bugs that had crept in along the way. Unit test fixes for the refactoring will follow in a subsequent patch. Signed-off-by: Scott Seago <sseago at redhat.com> --- src/app/controllers/application.rb | 46 ----------------
2006 Feb 02
19
No more logs after SVN?
Hello, Yesterday I "subversioned" my app using svn and now everything works fine except I don''t see any log entries in development.log? What would cause the log entries to be not produced anymore? Thanks Frank --------------------------------- Bring words and photos together (easily) with PhotoMail - it''s free and works with Yahoo! Mail.
2006 Feb 22
3
ri docs for Rails?
I cant find ri docs for any of the Rails classes. Do I have to generate them? I do see RDoc files. john
2006 Feb 27
8
Newbie question - Automatically update _form.rhtml?
Hi all, I''ve got an odd issue. I''m new to Ruby/Rails and have a bit of a silly question. I''m following along with the nice little tutorial here, to get an idea of the system: http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=3 However, I''m running into an issue where the author adds a new field in his database, refreshes the browser and shows