Displaying 20 results from an estimated 6000 matches similar to: "Question about layout"
2006 Jul 17
10
getting the user name
Hi I am new to ruby and trying to obtain the user name in the login
index.rhtml where I could display "You have logged in [user name]"
How could I do this? I have been trying different options after reading
the ruby manual but still throw an error.
please help
--
Posted via http://www.ruby-forum.com/.
2006 Apr 28
7
a simple problem but difficult
how can i access to a collection that was created in the same control
and the data that a want to access isn?t the id
the collection has : id, usuario, comandancia
comandancia is the data to access
the question is how to access comandancia in @acceso
this code is wrong :
def new
@catelemento = Catelemento.new
@acceso= Catacceso.find(:all,
:conditions
2006 Apr 06
9
How to get Form values in RubyOnRails
Hi
I want the FORM values on my controller.i.e. I want the values of login_loginname(Form variable) and login_password(Form variable) on login_controller.rb
How can i do that?
Table Name is: logins
Model:: Login.rb
Controller:: login_controller.rb
Below is my test form
loginname
password
Hoping for reply
Regards
Parikshit
2005 Jun 01
3
Mixing Controllers
I have a login section that is part of my view from my sign_up
controller. Validating my user happens through a login_controller.
Now if validation is good it is ok because I have a redirect in my
login_controller. But if the login is not successful I have to go
back to my view from my sign_up controller. Using redirect makes no
sense because my @user_login object is lost and so are
2006 Jun 10
7
Agile Web Development with Rails Page 33
I''m a real Newb; just bought AWDwR and using it with Win2000 - it took me
ages, and only after reading Curt Hibbs Rolling with Ruby, to realise that I
needed to use Cmd.exe before using AWDwR''s dave> instructions.
I''ve created Say/hello.html and I still get "Template is missing" with
http://localhost:3000/say/hello
I''ve read
2007 Oct 05
7
Trouble with text_field_tag
I am trying to implement a basic login page:
login.rhtml
1 <fieldset>
2 <% form_tag do %>
3 <label for="name">Name:</label>
4 <%= text_field_tag :name, params[:name] %>
5 <label for="password">Password:</label>
6 <%= password_field_tag :password, params[:password] %>
7 <%= submit_tag
2007 Dec 03
2
before_filter application => exclude some other controllers
Hello again,
It''s possible to use before_filter in the application_controller, and
exclude for some methods from other controllers ?
i have a before_filter in application_controller that checks if the user
is logged, if the time hasn''t expired, ... and I want to exclude some
methods of this check, like the login. This ''login'' belongs to other
controller.
I
2006 Apr 13
8
Controller paths
Hi there.
Suppose I create some controllers like
ruby script/generate controller Admin::product add remove
ruby script/generate controller Admin::user add remove
ruby script/generate controller Login login logout
the directory structure will be
app/controllers/admin/product_controller.rb
app/controllers/admin/user_controller.rb
app/controllers/login_controller.rb
Now suppose I need some links
2008 Nov 09
3
Still problem with trivial self heal
Hi!
I have trivial problem with self healing. Maybe somebody will be able
to tell mi what am I doing wrong, and why do the files not heal as I
expect.
Configuration:
Servers: two nodes A, B
---------
volume posix
type storage/posix
option directory /ext3/glusterfs13/brick
end-volume
volume brick
type features/posix-locks
option mandatory on
subvolumes posix
end-volume
volume server
2007 Nov 22
3
can''t find disk image while installing centos domU
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I''m using Centos 5.0. When i try to setup a domU with virt-install it
all goes well till the partition menu. The anaconda setup can not find
any drives. .
The virt-install call looks like this:
virt-install -n opfer1 -r 400 -f /mnt/data0/domus/opfer1/opfer1 -s 3
- --nographics -p -l
2006 Aug 10
4
1.1.5 Upgrade and config.load_path not working
Hey,
I am trying to upgrade to 1.1.5 and rails no longer finds my controllers the
live outside app/controllers. I was on 1.1.2 previously and here is my
setup
In environment.rb
config.load_paths += [File.join(File.expand_path(RAILS_ROOT),
"rails_shared/controllers") ]
config.load_paths += [File.join(File.expand_path(RAILS_ROOT),
"rails_shared/helpers") ]
2007 Jul 18
3
Getting the session variables after a redirect_to
Hi!
I set some session variables on a login_controller and i want to access
them after a redirect_to (:controller => "auditor", action => "check").
The problem is that the session variable are comming empty in the
auditor view!!
I tough that session variables last trought all controllers...iam wrong?
Please tell me.
--
Posted via http://www.ruby-forum.com/.
2015 May 26
7
Seeking advice about ISDN BRI Cards
Hi,
please whoever has some expertise in choice of BRI ISDN cards,
please restore my faith in community support :)
(on private email I can probably explain more than fits for a public forum)
Most I'd like to ask is about what to choose, out of what is available...
My locality is United Kingdom, lines from British Telecom (BT),
but any advice / pointers (I googled around already) are
2016 Sep 08
2
Migrating samba4 dc from an instance with static/external dns to a fresh install with dynamic/internal dns
> On 8 Sep 2016, at 14:04, Rowland Penny via samba <samba at lists.samba.org> wrote:
>
> On Thu, 8 Sep 2016 10:50:20 +0000
> Lukasz Zalewski via samba <samba at lists.samba.org> wrote:
>
>>
>>> On 8 Sep 2016, at 11:34, Rowland Penny via samba
>>> <samba at lists.samba.org> wrote:
>>>
>>> On Thu, 8 Sep 2016 07:19:34
2006 Jul 25
5
webrick server slow or does not connect
hi,
In login_controller.rb when I do the fallowing code it works fine
before_filter :authorize, :except => :login
but I want to do the fallowing when creating the user so the
authorization is not checked
before_filter :authorize, :except => :login, :except => :create_user
but when I do this webrick server appear to be slow or not connected and
take lot of time to load?
Could someone
2006 Feb 08
1
functional test problem
I am trying to write a test for my delete method.
I find a User in the db by its id, do the delete action, then I want to
see if it is still in the db.
How do I check that the User IS Deleted without causing errors?
** My Test ********************************
def test_delete_user
login
user = User.find(2)
post :delete_user, {:id => user.id}
assert_equal "User
2009 Jul 28
3
CIsco 7960 + asterisk: hepl needed
Dear All,
I'm trying to configure my new phone Cisco 7960 to work with asterisk.
I followed http://www.asteriskguru.com/tutorials/cisco_7960_ip_phone_configuration.html
and I got into the point where I can see on the the display line indication showing
"55 <phone icon with x>" so it looks like the phone is not registered.
The phone and the asterisk are in the same local
2008 Dec 02
4
Using Cucumber with latest Webrat
I added cucumber to my rails project using the following commands:
git submodule add git://github.com/aslakhellesoy/cucumber.git \
vendor/plugins/cucumber
ruby script/generate cucumber
git submodule add git://github.com/brynary/webrat.git \
vendor/plugins/webrat
git submodule add git://github.com/dchelimsky/rspec.git \
vendor/plugins/rspec
git submodule add
2017 Oct 25
2
Migrating samba AD DC from 4.1.0 to 4.7.0 and dns backend change
Hi,
We are in the process of migrating our samba AD (4.1.0pre1-GIT-6be458d)
to the latest 4.7.0 release. In the process we want to switch from the
BIND_DLZ to the internal dns server.
I have done some experiments in our test environment and everything
seems to work ok, but I'm not sure how to handle the dns backend change.
Is it just the case of running
samba_upgradedns
2016 Sep 08
2
Migrating samba4 dc from an instance with static/external dns to a fresh install with dynamic/internal dns
> On 8 Sep 2016, at 11:34, Rowland Penny via samba <samba at lists.samba.org> wrote:
>
> On Thu, 8 Sep 2016 07:19:34 +0000
> Lukasz Zalewski via samba <samba at lists.samba.org> wrote:
>
>> Dear list,
>>
>> I want to migrate our existing samba4 dc with a static/external dns
>> backend, to a new install with internal dynamic dns backend.