[Rails] i can not get current_user while writing test case with Rspec and Capybara

2012-04-05 Thread Chirag Shah
0 down vote favorite share [g+] share [fb] share [tw] I have to write test case for my one feature listing page and that feature index method has code like below def index @features = current_user.features end Now when i try to write test case for this then it throws error for 'undefined meth

[Rails] Git Issue for change repository

2011-09-01 Thread Chirag Shah
any good way for do this ? Thanks in advance Chirag Shah -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubs

[Rails] Re: Dynamic Inline CSS

2011-08-04 Thread Chirag Shah
You have to store style in some variable and then need to be apply there in div style But do you have conditional border style ? Or white shadow border should be available for all avtar images ? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed

[Rails] Re: Getting error while using paperclip gem..

2011-07-28 Thread Chirag Shah
Please mentioned more details that what you trying to do with the paper clip gem By this error, only things come that you have not show.erb in your views Or you have to specify any render or redirect in the show method - Chirag Shah -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] Re: Help with ajax call with date_select

2011-07-27 Thread Chirag Shah
discard_day property takes hidden field instead of hide the day select dropdown So instead use discard property, you have to do hide by default on load by javascript or by css - Chirag Shah http://blogofchirag.blogspot.com/ -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] Re: autocomplete depending on input of another field

2011-07-27 Thread Chirag Shah
You can call ajax request on change or on lost focus of the code field For send ajax request you can do observe_field or use remote_function - Chirag Shah http://blogofchirag.blogspot.com/ Angelo Cordova wrote in post #1013448: > Hello everyone > > I have the following problem. >

[Rails] Re: Gem problems

2011-07-27 Thread Chirag Shah
Have you installed both nokogiri versions to your machine ? Brian Jakovich wrote in post #1013456: > Trying to use cabybara and aws's ruby gem and I'm getting this error: > > *Bundler could not find compatible versions for gem "nokogiri": >> In Gemfile: >> aws-sdk depends on >> nokogir

[Rails] Re: Experienced Ruby on Rails Developers in Vancouver, BC - Canada

2011-07-27 Thread Chirag Shah
Contact me on chirag(dot)sweng(at)gmail(dot)com -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this g

[Rails] Re: how to get a value of a variable from a controller to different view?

2011-07-27 Thread Chirag Shah
If you redirect your page then you can not get that variable value to your view Only on render you have that variable value And you can not have value in params unless you pass it in the arguments at the time of the redirection - Chirag Shah -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: Rails, jquery and Ajax

2011-07-27 Thread Chirag Shah
For work with jquery and rails function you can use jrails plugin - Chirag Shah Paul Bergstrom wrote in post #1013320: > Chirag Shah wrote in post #1013312: >> Why don't you use remote_function() ? >> >> - Chirag Shah > > I used to do that but now I'm trying

[Rails] Re: Run method if association does not exit

2011-07-27 Thread Chirag Shah
You can create by Song.feed.create(:parameters => value) Vitaliy Yanchuk wrote in post #1013290: > Hello people, > > Please advice with, I have some models and they have feeds, feed is a > small presenter for different types of content. > > class Feed >belongs_to :attachable, :polymorphic =>

[Rails] Re: Rails, jquery and Ajax

2011-07-27 Thread Chirag Shah
Why don't you use remote_function() ? - Chirag Shah -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To u

[Rails] RJS Error: TypeError: while using active scaffold

2009-05-12 Thread Chirag Shah
s-tbody'); ActiveScaffold.decrement_record_count('console__complaints-active-scaffold'); $("#console__complaints-messages").html("\n \n\n \n\n \n\n"); There is no errors in the log. Any Suggestions? Need more

[Rails] Net::SMTPAuthenticationError with use of gmail smtp

2009-05-02 Thread Chirag Shah
anges in my settings. Its same as before my mail service is working.. Is there any service issue? Thanks, Chirag Shah Software Engineer http://blogofchirag.blogspot.com/ -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message be

[Rails] Sphinx Running problem

2009-02-03 Thread Chirag Shah
Hi, I have windows PC.First, i had install sphinx-0.9.8-win32.zip. and then add sphinx as plugin.and set sphinx.yml file in config/sphinx.yml my sphinx.yml is as below config file:: config/#{environment}.sphinx.conf searchd log file:: log/searchd.log query log file:: log/searchd.query.lo