Displaying 20 results from an estimated 10000 matches similar to: "probably easy q: flash before redirect"
2006 Jul 07
1
question about routes and using flash for navigation
I have a flash movie that I''m using for site navigation.. I have links such as:
''/site/signup'', ''/site/login'' and ''/site/faq'' where site is my
controller and signup, login or faq are my actions.. I also have the
following routes defined in routes.rb:
map.connect "/", :controller => "site", :action =>
2006 Apr 25
0
completely stuck on Role-Based Authorization
Im completely stuck on Role-Based Authorization (I used the rails recipe
method)
(user_controller.rb)
def login
return if generate_blank
@user = User.new(@params[''user''])
if @session[''user''] = User.authenticate(@params[''user''][''login''],
@params[''user''][''password''])
2006 Nov 04
3
role based authorization question
I am using the the authorization recipe outlined in Rails Recipes.Is it
possible for one role, say ''admin'', to have access to every action on every
controller without explicitly having to create a Right for each?
I know this will not work as is, and to force it to do so would violate MVC,
but is there some other way to accomplish having something like this in a
controller:
2006 Jun 13
2
If... what?
I have a simple div in my layout that I would like to change depending
on the action. For instance in the account/signup I would like it to
use <div id="register"> but in account/login I would like it to use <div
id="login">
I''m trying to find the right if statement to use here.. I thought that
maybe:
if :action => login would work but it
2015 May 08
4
Q: respecting .ssh/id_rsa
While attempting to debug something else I ran across this:
ssh -vvv somehost
. . .
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/identity-cert type -1
debug3: Not a RSA1 key file /root/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing
2006 May 02
3
CSS for flash messages
Hello all,
I''m perplexed by the following:
I''ve implemented flash messages in my application.rhtml with:
<% for name in [:notice, :warning, :message] %>
<% if flash[name] %>
<%= "<p id=\"#{name}\" class=\"flash\">#{flash[name]}</p>" %>
<% end %>
<% end %>
I''ve implemented CSS in
2006 Apr 27
7
Role Based Authorization recipe implementation?
i got the rails recipes book, i have now an auth system for users
without problems, now i want to made a role based acces for my app, im
following the "Role Based Authorization" recipe of the book but i cant
make it to work even when the tables created and correctly added data
manually definig the roles and rights. als i dont know how to define a
right for use all the actions in a
2006 Feb 13
1
Change redirect after method ''redirect_to''
I want to be able to change the redirection url after I called
redirect_to, is that possible?
My specific use case is that I want to change the default redirection of
"Login Engine" method signup, but I am seeing no other way then
copy/past and change the parameters of redirect_to.
This questions extends to render method as well, I want is to avoid
DoubleRenderError exception.
--
2005 Sep 02
7
Form to update two tables
Hello there,
this is probably a very simple problem but I''m stuck.
I''m following the Login generator tutorial from rubyonrails. It''s all
worked fine so far. But I want to add a bit more functionality so that
when a user signs up in addition to chosing a login name and password
they type in a company name which is added to a seperate table called
COMPANIES. The id
2008 Jul 09
1
loverays invites you to join Zorpia
Hi speex-dev!
Your friend loverays from , just invited you to his/her online photo albums and journals at Zorpia.com.
So what is Zorpia?
It is an online community that allows you to upload unlimited amount of photos, write journals and make friends. We also have a variety of skins in store for you so that you can customize your homepage freely.
Join now for free! Please click the following
2006 Jun 24
1
DRY up link_to_remote and its url_for
In an attempt to provide a gracefully degradable link_to_remote, I
repeat myself every time:
<%= link_to_remote(''Signup'',
{:url => {:controller => ''user'', :action => ''signup''}},
{:href => url_for(:controller => ''user'', :action => ''signup'')}) %>
Looked around the RDoc &
2005 Jun 20
1
Flash Player
Is there any flash based players out that can be embedded into a webpage and stream a icecast feed?
-=-=-=-=-=-=-=Ottawa Valley Weather-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Weather @ 5:50pm - Temp: 31.1?C - Humidity 23% - Wind: W @ 0 km/h
Baro: 1001kPa Falling - Vis: 24km - Sky: Few Clouds - Weather: ---
Hourly Rain: 0.00mm - Daily Rain: 0.00mm - Total Rain(May 28th): 1.00mm
=-=-=-=
2006 Feb 01
1
Bus error when running Hieraki
I have been trying to set up Hieraki 2.0.1 and I cannot seem to
get it running. I am running on FreeBSD 5.4, Ruby 1.8.4,
Apache 2.0.55, Mysql 4.1.16, ruby-mysql 2.7, mod_scgi 1.9,
scgi_rails 4.3 and Rails 1.0. I can start up the wiki, get
it to display the home page, and when I click on the signup link
the signup form displays. When I fill in the signup form and
click the signup button, the
2007 Jan 09
1
assert_redirected_to not working as expected
I''ve installed the "acts_as_authenticated" plugin and made some
modifications to the controller (app/controllers/account_controller.rb)
"signup" module as follows:
===
def signup
@page_title = ''Create Account''
@user = User.new(@params[:user])
if request.post?
if @user.save
session[:user] = User.authenticate(@user.login,
2012 Nov 06
2
rspec failure upon revisit
I just returned from a different project after taking a few weeks off of
my tutorial. I''m using Ruby on Rails 3 Tutorial - Learn Rails by
Example by Michael Hartl.
After rebooting my server I ran an rspec spec/ command to check to see
if there were any problems and this is what I received. I didn''t modify
anything except I did overwrite users_controller.rb and
2006 Apr 15
9
newbie q: acts as authenticated or login engine?
I''m trying to create a basic web page where people can register. Before
they are approved they are emailed a link where that they must click in
order to verify their info is correct (or at least their email).
Should I use acts as authenticated or the login engine for this?
http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated
http://rails-engines.org/login_engine
TIA
2006 Mar 03
5
Quick question about @params
I was looking through the loginGenerator code and noticed the following:
Login:
User.authenticate(@params[:user_login], @params[:user_password])
Signup
User.authenticate(@user.login, @params[:user][:password])
The syntax of the call in the signup code confused me...what exactly
does @params[:user][:password] this return to me? Is the params
structure a multi-dimensional array? I would have
2002 Aug 27
1
tdb failure when attempting to use Samba
I have successfully implemented Samba in the past but I am now perplexed by
a new installation which fails smbstatus with the message:
"tdb((null)): tdb_open_ex: could not open file /var/cache/samba/brlock.tdb:
No such file or directory
Failed to open byte range locking database
"tdb((null)): tdb_open_ex: could not open file /var/cache/samba/locking.tdb:
No such file or directory
ERROR:
2006 Mar 18
10
collection_select''s linked
I created a form with two collection_select, country and state and would
like to bring up to date the state list when to select a new country.
How I can make this in Rails?
Thanks
Eleudson
Brazil
<p><label for="person_country_id">Country</label><br/>
<%= collection_select(:person, :country_id, @countries, :id, :name)
%></p>
<p><label
2006 Jul 15
1
Redirect_to from initialize method
Hello, I''m curious as to why this bit of code doesn''t work:
--
class SignupController < ApplicationController
def initialize
signup.call
end
def signup
redirect_to :action => "signup_form"
end
end
--
You have a nil object when you didn''t expect it!
The error occured while evaluating nil.rewrite
--
Whereas if I comment the