search for: husseiny

Displaying 6 results from an estimated 6 matches for "husseiny".

Did you mean: hussein
2012 Aug 07
9
How do I force link_to/form helpers to use the superclass name in the path instead subclass?
I want my helpers to generate paths using a superclass instead of the subclasses. Assuming I have Owner and Member that both inherit from User, rails will use the current objects class name when generating paths: Let''s say current_user is a mod: <%= link_to current_user.name, current_user %> will generate "/mod/:id". I want to force it to generate
2012 Mar 04
5
moving form validation to client-side
Hi I know with javascript we can validate the input of a form on the client, is there an easy way to specify this in rails? I am thinking the javascript code getting generated using some sort of DSL? -- Kind Regards, Rajinder Yadav SafetyNet Test Driven Development http://safetynet.devmentor.org -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2012 Apr 01
0
postrun_command
...e catalog; skipping run > debug: Executing ''touch /root/file'' > so i''d like to know if i can make sure that postrun_command won''t be executed if puppet run rails Or even has a single individual failure Thanks in advance -- Best Regards, Eslam Mamdouh El Husseiny *Systems Administrator** Cloud Niners Ltd. * *Cellular: (+2) 011 198 40 40 Mansoura: (+2) 050 234 70 81 Cairo: (+2) 022 *268 34 60 Fax: (+2) 022 268 34 63 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, s...
2012 Feb 19
1
fully qualified variables and nodes.pp
...ides/scope_and_puppet.html, but i have a problem with variable defined in nodes.pp as these variables are neither in top scope to use $::var nor in class to use $classname::variable So, any recommended suggestions regarding such these problems ? Thanks in advance -- Best Regards, Eslam Mamdouh El Husseiny *Systems Administrator** Cloud Niners Ltd. * *Cellular: (+2) 011 198 40 40 Mansoura: (+2) 050 234 70 81 Cairo: (+2) 022 *268 34 60 Fax: (+2) 022 268 34 63 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, s...
2012 May 04
0
Why does Rails only save the joiner record in one instance but not another?
Assuming we have User, Account, and Role models, and a User has_many :accounts, through: :roles and vice-versa, with the following snippet Rails automatically creates the Role (joiner) record, but with the snippet after Rails will not. I think I''m misunderstanding how has_many through works, so I would appreciate any insight into the subject. def new @account =
2012 Jun 08
0
Having difficulty testing redirects with Rspec and Capybara
Every time I try to test a redirect, I get this error: @request must be an ActionDispatch::Request Any idea why? I''m using Rspec-Rails 2.9.0, Capybara 1.1.2, and Rails 3.2. Here''s my test: describe "AdminAccountPages" do subject { page } let(:user) { FactoryGirl.create(:user) } let(:account) { user.owned_accounts.create!(name: "ACME Corp",