Re: [Rails] Re: rails 4 link_to post method

2014-03-29 Thread Arun kant sharma
Please change your name from Me to something else. It's confusing. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [Rails] Re: [Devise] redundant use of method: :delete while using destroy_user_session_path

2014-03-11 Thread Arun kant sharma
My question is that why link_to method does not default to DELETE method when passed link is destroy_user_session_path as we know from routes what it should use. I don't have problem passing method: :delete but it feels redundant. Also my bad. Sign Up should be Sign out. -- You received this

[Rails] [Devise] redundant use of method: :delete while using destroy_user_session_path

2014-03-08 Thread Arun kant sharma
While using devise I have to use %li= link_to Sign up, destroy_user_session_path, method: :delete now that destroy_user_session_path should automatically default to delete method because that's how it is defined in routes. Why is it generate links to get method for default for given path? --

Re: [Rails] Re: Is Array constants in the model can be changed during runtime?

2014-02-03 Thread Arun kant sharma
Sorry for off topic reply, but how do you quote code using gmail? or I should use web interface for posting in group. On Mon, Feb 3, 2014 at 3:23 PM, Frederick Cheung frederick.che...@gmail.com wrote: On Monday, February 3, 2014 9:36:25 AM UTC, Роман Ярыгин wrote: Now, when I refresh the

Re: [Rails] How to decrypt .net API response in rails app ?

2014-02-03 Thread Arun kant sharma
If you have decryption keys then write an helper function using bcrypt-ruby lib's general crypto algorithms. Also don't store keys in source code but in environment. Best Arun -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe

Re: [Rails] Re: Is Array constants in the model can be changed during runtime?

2014-02-03 Thread Arun kant sharma
Oops, I meant code snippets. How to insert them in gmail? On Mon, Feb 3, 2014 at 4:36 PM, Colin Law clan...@gmail.com wrote: On 3 February 2014 10:50, Arun kant sharma iarunk...@gmail.com wrote: Sorry for off topic reply, but how do you quote code using gmail? or I should use web interface

[Rails] Best practice to use AngularJS with Rails 4

2014-02-03 Thread Arun kant sharma
What is best practice to use angular with rails 4. I can think of following: 1. Create an JSON API only rails app and deliver a single page app to client and angular take care of talking to API. 2. Create an normal rails app with API which delivered through api.domain.com. Serve

Re: [Rails] Uninstall old version of Bootstrap, how?

2014-01-31 Thread Arun kant sharma
Maybe rake assets:clean will help On Fri, Jan 31, 2014 at 7:53 PM, Bizt martyn@gmail.com wrote: Hi, I added this line to my Gemfile, then done bundle install gem 'bootstrap-sass', '2.3.2.0' ...but, I now want to install the latest version of bootstrap. How do I uninstall these

[Rails] Re: Rails and capybara tasks

2014-01-30 Thread Arun kant sharma
rails 4.0.2 rspec 2.14.1 capybara 2.2.1 when I put tests in spec/requests dir, I get this error: undefined method `visit' for #RSpec::Core::ExampleGroup::Nested_5::Nested_1:0x0004ffe3b8 On Thursday, 30 January 2014 20:29:50 UTC+5:30, and...@benjamin.dk wrote: Hey, what is your rails,

[Rails] Rails and capybara tasks

2014-01-29 Thread Arun kant sharma
When we create a new integration test using $ rails g integration_test Name it create it in spec/requests directory, and capybara is not available there by default. I have to move it to spec/feature dir to make it work (or use other hacks). Can somebody tell me why this is the case? Thanks,