Displaying 5 results from an estimated 5 matches for "_login".
Did you mean:
login
2013 Nov 01
5
xend with XenAPI in stackless python-2.7
...t;> session.login_with_password('''',
'''')
Traceback (most recent call
last):
File "<stdin>", line 1, in
<module>
File "/usr/lib/python2.7/site-packages/XenAPI.py", line 198, in
<lambda>
return lambda *params: self._login(name,
params)
File "/usr/lib/python2.7/site-packages/XenAPI.py", line 171, in
_login
self.API_version =
self._get_api_version()
File "/usr/lib/python2.7/site-packages/XenAPI.py", line 186, in
_get_api_version
pool =
self.xenapi.pool.get_all()[0]
File "/usr/l...
2006 Aug 17
1
Mongrel, development mode, and deleting/moving templates
I''m not sure what''s to blame, but it seems that if I delete or move a
template, restarting is necessary. For example, I recently moved a
partial from app/views/members/_login.rhtml to
app/views/members/_login.mab, after which I got a blank-page-of-death.
Once I restarted my Mongrel cluster, it worked. Shouldn''t changes like
this get picked up automatically in development mode?
Joe
--
Posted via http://www.ruby-forum.com/.
2006 Aug 10
6
Partials - asked before never got reply
...As an example -
I have a main/welcome page. If someone new or a user not logged in
arrives at this page I display both a registration form and a login
form. However, if they are logged in then those forms should not show
up on that page. Also should mention that I have a _register partial
and a _login partial.
Now maybe I just need a seperate page to welcome users who are logged
in but I want to see if I could do it as described above.
Right now the welcome.rhtml page is set up like such:
<% if @u %> #if user is logged in / session
<%= render :partial => "main/logout" %...
2006 Apr 15
0
respond_to issue
..."Login or password incorrect. Try again."
end
end
end
end
I have two views.. the rjs template (login.rjs) and login.rhtml
It seem''s as if login.rhtml is rendering on all requests:
Rendering within layouts/application
Rendering account/login
Rendered account/_login (0.00124)
Rendered account/_login (0.00089)
Rendered shared/_header (0.00070)
Rendered shared/_footer (0.00070)
Completed in 0.01152 (86 reqs/sec)
Any ideas?
Thanks,
Raja
2006 Jul 13
8
Acts As Authenticated - smarter login box
...ptions. Is there any way to have the view dump out all
available instance variables, or at least a list of them?
Also, it''s not DRY, as the login form is actually already located in
app/views/account/login.rhtml. In order to use the partials, I have to
copy the form to app/views/account/_login.rhtml.
Ideally, it would be great if I could just have one line of code in the
main view like
<%= render_the_login_form %> and the code would be smart enough to show
the proper form based on the logged in state of the user.
I get the feeling that I''m not going about this in a very...