Re: [Engine-users] LoginEngine dying on Rails 1.1?

2006-05-14 Thread Nick Tran
Roland Mai wrote: > I think I got the user creation to work by commenting out the > > User.transaction(@user) do > > > After reading about transactions on api.rubyonrails.com it didn't make > much sense why one would have a transaction there because there is only > transaction. I did the same fo

[Engine-users] trouble migrating login_engine schema

2006-05-14 Thread Jeremy Pettet
Hello, I tried to migrate the schema for Login_Engine but I get this error >rake engine_migrate ENGINE=login rake aborted! No such file to load -- authenticated_user I cannot seem to find anyone else with the same problem. Thanks, JP -- Posted via http://www.ruby-forum.com/. ___

Re: [Engine-users] Developing an engine: What should I keep in mind?

2006-05-14 Thread James Adam
What you should keep in mind when developing an Engine: ## Keep it focused Don't try and solve 1000, 100, or even 10 problems. Do one thing, pick one strategy, and do it cleanly and clearly. ## Convention over configuration Don't add configuration until YOU need it, and even then think hard about

Re: [Engine-users] resetting users table

2006-05-14 Thread James Adam
This should probably work: 1. either a) migrate the user/login engines down to version 0, or b) edit the engine_schema_info table directly 2. re-migrate the engines to recreate the tables - j On 11 May 2006 22:59:36 -, steve ross <[EMAIL PROTECTED]> wrote: > I have what seems to be a hosed u

Re: [Engine-users] How to extend UserEngine to provide roles on a per project basis

2006-05-14 Thread James Adam
Paul, You probably want to have some has_many :through style association, i.e. User has many Roles through ProjectPosition, or something like that. - james On 4/20/06, Paul Robinson <[EMAIL PROTECTED]> wrote: > OK, I've not seen anything out there on this, but maybe you guys can > make a suggest

Re: [Engine-users] Namespace problem

2006-05-14 Thread James Adam
It's very unlikely that there will ever be any kind of 'automatic namespacing' provided with by the Engines plugin; less magic and behaviour which is consistent with the rest of Rails is always preferable. On 5/9/06, Bart Masschelein <[EMAIL PROTECTED]> wrote: > Hello, > > I wanted to convert an E

Re: [Engine-users] Forwarding to login-page fails for user-engine if used within a controller like 'admin/general'?

2006-05-14 Thread James Adam
It's quite possible that the login engine is redirecting to :controller => 'user', rather than :controller => '/user' (the latter being necessary to escape out of user modules), though you'd need to check the code for that. If that's the case, submit a ticket and it'll get patched up forthwith. -

Re: [Engine-users] Upgrading Rails to 1.1

2006-05-14 Thread James Adam
Can you supply the error message in full - the method trace will be helpful. - james On 13 May 2006 16:45:56 -, Domenic Ippolito <[EMAIL PROTECTED]> wrote: > Hi, I'm also getting the add_path error in engines.rb. > I'm running rails 1.1.2, and I've tried using edge rails and specifying > > mo

[Engine-users] Developing an engine: What should I keep in mind?

2006-05-14 Thread Joshua Muheim
Hi all I'd like to begin with clean development of engines that I will be able to re-use and give to the Rails community. Now my question: what should I always keep in mind when writing code for an engine? I'm thinking here about stuff like that I shouldn't hard-code table names etc. And by th

Re: [Engine-users] How do you develop engines?

2006-05-14 Thread Joshua Muheim
http://api.rails-engines.org/engines/files/vendor/plugins/engines/README.html Or maybe this one? :-) -- Posted via http://www.ruby-forum.com/. ___ engine-users mailing list engine-users@lists.rails-engines.org http://lists.rails-engines.org/listinfo.cg

Re: [Engine-users] How do you develop engines?

2006-05-14 Thread Joshua Muheim
Maybe this helps you out. http://www.rails-engines.org/wiki/pages/Extracting+Engines -- Posted via http://www.ruby-forum.com/. ___ engine-users mailing list engine-users@lists.rails-engines.org http://lists.rails-engines.org/listinfo.cgi/engine-users-r

[Engine-users] Forwarding to login-page fails for user-engine if used within a controller like 'admin/general'?

2006-05-14 Thread Joerg Battermann
Hello there, I am using the user and login engine in my application, and it works perfectly when used in 'normal' controllers, but when used in a controller like 'admin/general', it does not work properly, because when going to http://localhost/3000/admin/general I get the following: Routing Erro