search for: husseini

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

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
Hi, i was testing puppet postrun_command option and i found that it will be executed even if puppet run fails to complete successfully as seen in this snippets : debug: Executing ''rm /root/file'' > debug: catalog supports formats: b64_zlib_yaml dot marshal pson raw yaml; > using pson > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Could
2012 Feb 19
1
fully qualified variables and nodes.pp
hi folks, As a response to " Dynamic lookup of $var at is deprecated. Support will be removed in Puppet 2.8. Use a fully-qualified variable name (e.g., $classname::variable) or parameterized classes." warning i''m trying to apply fully-qualified variable name solution following this Doc http://docs.puppetlabs.com/guides/scope_and_puppet.html, but i have a problem with variable
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",