|James Adam||Nov 1, 2005 8:17 am|
|James Adam||Nov 1, 2005 9:37 am|
|James Adam||Nov 1, 2005 3:56 pm|
|Robert||Nov 1, 2005 4:27 pm|
|Jay Levitt||Nov 1, 2005 7:26 pm|
|Ramin||Nov 1, 2005 7:29 pm|
|Scott Becker||Nov 1, 2005 7:42 pm|
|Bill Katz||Nov 1, 2005 10:44 pm|
|Tom Ward||Nov 2, 2005 2:11 am|
|Bruno Celeste||Nov 2, 2005 3:05 am|
|James Adam||Nov 2, 2005 6:00 am|
|Francois Paul||Nov 2, 2005 6:14 am|
|Bruno Celeste||Nov 2, 2005 6:25 am|
|Bruno Celeste||Nov 2, 2005 6:45 am|
|James Adam||Nov 2, 2005 6:48 am|
|Bruno Celeste||Nov 2, 2005 7:02 am|
|James Adam||Nov 2, 2005 7:09 am|
|Luke Randall||Nov 2, 2005 9:51 am|
|PJ Hyett||Nov 2, 2005 11:04 am|
|Bruno Celeste||Nov 2, 2005 11:17 am|
|James Adam||Nov 2, 2005 11:49 am|
|James Adam||Nov 2, 2005 11:52 am|
|James Adam||Nov 2, 2005 12:00 pm|
|Edgardo Hames||Nov 2, 2005 12:27 pm|
|PJ Hyett||Nov 2, 2005 12:38 pm|
|James Adam||Nov 2, 2005 12:43 pm|
|James Adam||Nov 2, 2005 1:17 pm|
|Ramin||Nov 2, 2005 2:08 pm|
|Ramin||Nov 2, 2005 2:48 pm|
|Ramin||Nov 2, 2005 2:58 pm|
|Ramin||Nov 2, 2005 3:06 pm|
|James Adam||Nov 2, 2005 3:35 pm|
|Lou Vanek||Nov 7, 2005 2:11 pm|
|Bruno Celeste||Nov 7, 2005 2:28 pm|
|Lou Vanek||Nov 7, 2005 3:09 pm|
|James Adam||Nov 8, 2005 12:33 am|
|James Adam||Nov 8, 2005 12:38 am|
|Lou Vanek||Nov 8, 2005 2:21 am|
|James Adam||Nov 8, 2005 2:23 am|
|Bruno Celeste||Nov 8, 2005 2:34 am|
|James Adam||Nov 8, 2005 3:14 am|
|Bruno Celeste||Nov 8, 2005 3:34 am|
|Lou Vanek||Nov 8, 2005 3:41 am|
|James Adam||Nov 8, 2005 3:45 am|
|James Adam||Nov 8, 2005 4:07 am|
|Lou Vanek||Nov 8, 2005 4:10 am|
|Lou Vanek||Nov 8, 2005 4:50 am|
|James Adam||Nov 8, 2005 5:15 am|
|James Adam||Nov 8, 2005 7:42 am|
|alex black||Nov 14, 2005 7:40 pm|
|Subject:||Re: [ANN] Rails Engines + Login Engine|
|Date:||Nov 2, 2005 3:06:49 pm|
I'm really sorry about these emails.. but I'm hoping it'll help others who are having the same problems as I am.
I found out the problem. In the documentation, it says to start the engine by simple calling:
in your environment.rb.. this in turn will cause the folder that is created in the public/engine_files to be called "login", instead of "login_engine". Problem is the engine_stylesheet method is looking for a folder called login_engine and not just login.
All I did was change that line in my environment.rb file to read:
and it seems to have solved the problem. The css file loads properly. Again, sorry about all the emails.. I just thought I'd share my findings with everyone.
On 11/2/05, Ramin <i8ra...@public.gmane.org> wrote:
ok ok ok .. im getting a better understanding of all of this.. I just noticed the engine_files folder that was created in my public folder. I read the README file in there and understand how it works now. Problem now is, there is a folder called "login", but shouldn't this be called "login_engine"?
Either way, I tried renaming the folder to login_engine and I still can't get the css to load. The <style> tag isn't even being created in my view. Is this a feature of the engine_stylesheet or stylesheet_tag method that if it can't find a stylesheet file it won't even create the html for it?
code of my view:
<html> <head> <title>beta.yaram.com <http://beta.yaram.com></title> <%= engine_stylesheet 'login_engine' # I also tried just 'login' %> </head> <body> <%= @content_for_layout %> </body> </html>
On 11/2/05, Ramin <i8ra...@public.gmane.org > wrote:
I printed out some debugging infromation to try and figure out why the stylesheet wasn't being included. It seems like the stylesheets are expected to be in the following location:
Am I supposed to create a folder called engine_files and manually copy over the css files? I would imagine the engine_stylesheets helper would just grab the stylesheet from the plugins folder. Or is it the case where I have to set the 'public_dir' value somewhere in my enviroment.rb ?
On 11/2/05, Ramin <i8ra...@public.gmane.org > wrote:
I'm having trouble getting the login_engine stylesheet to load in my application.rhtml layout file. I have the following line added to the head of my document:
<%= engine_stylesheet 'login_engine' %>
Am I missing something?
Another unrelated question.. I used the Rails plugin install method to install both the Engines plugin as well as the login_engine. Is there a better way to do this using SVN, so that I can always be up to date (kinda like how I have using SVN external to get Edge Rails)? And will the Rails pluing installer always grab the latest version if you run it again?
On 11/2/05, James Adam < jame...@public.gmane.org>
Hi Edgardo -
It behaves the same way as the Salted Hash Login Generator (since it's essentially the same code :)), so yes - if, for instance, you tried to go to http://yoursite/user/edit without being logged in, you will be sent to http://yoursite/user/login
You can change which actions are accessible without logging in as described in the README in the docs ( http://rails- engines.rubyforge.org/rdoc/login_engine)<http://engines.rubyforge.org/rdoc/login_engine%29> .
Hope this helps!
On 2 Nov 2005, at 20:27, Edgardo Hames wrote:
Great Job! I have just watched the video and it seems very powerful and useful. What happens if the user just types the path to a certain part of the application? Does it automatically forward him to the login page?
_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwE...@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails