[Rails] ActionController::DoubleRenderError in Controls/itemsController#update Can only render or redirect

2012-09-06 Thread sumanta
responds_to_parent do render :update do |page| page tb_remove item_link = params[:controller].eql?(compliance_items) ? edit_compliance_compliance_item_path(master, @master_item) : edit_controls_item_path(@master_item) #

[Rails] Re: Getting error message while executing ruby code for fetchign data from MYSQL

2012-09-06 Thread Namit j.
Hi All, I just got it working by replacing the libmySQL.dll in bin directory of my Ruby folder. I referred to the link http://fuyun.org/2010/01/ruby-mysql-adapter-on-windows/ and downloaded the new dll from http://www.dll-files.com/dllindex/dll-files.shtml?libmysql. This might be a

[Rails] Re: modules

2012-09-06 Thread Frederick Cheung
On Thursday, September 6, 2012 2:39:00 AM UTC+1, John Merlino wrote: module ActionView module Helpers module FormHelper def form_for(foo, bar) instantiate_builder(foo, bar) end def instantiate_builder(foo,bar) self end end

[Rails] [JOBS] Experienced RoR developer in Melbourne

2012-09-06 Thread Rhondalynn Korolak
Are you (or can you recommend) an experienced ruby developer in Melbourne? Needs to be able to handle complex mathematical formulas, integration with other software via API and ODBC and have worked on other SaaS applications. This is an ongoing position for the right candidate. Needs to be

[Rails] Re: get post methods in controller's test

2012-09-06 Thread Frederick Cheung
On Wednesday, September 5, 2012 10:50:15 PM UTC+1, Ruby-Forum.com User wrote: If I'm getting what you say, in a controller spec it's not really important if I use get, post, delete or put methods - unless the action itself has some logic affected by the request type, right? :) Correct,

[Rails] Re: Hash Issue when looping through

2012-09-06 Thread Anthony Brushwood
This is solved! By adding flatten to the last loop... sub_area_option_item[:items][:option_item].flatten.each do |option_item| option_item[:name] - THIS IS WHERE MY CODE BREAKS end -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Image question

2012-09-06 Thread Walter Lee Davis
On Sep 6, 2012, at 1:20 AM, roelof wrote: Op woensdag 5 september 2012 22:55:03 UTC+2 schreef Hassan Schroeder het volgende: On Wed, Sep 5, 2012 at 1:45 PM, roelof rwo...@hotmail.com wrote: But as far as I know I cannot insert a image at a particular place. What exactly do you

Re: [Rails] Image question

2012-09-06 Thread Hassan Schroeder
On Wed, Sep 5, 2012 at 10:20 PM, roelof rwob...@hotmail.com wrote: I mean that I choose the place for the image. So at all the places there is no fixed place for the image, See for examples : Forget the examples; if you can't *describe* the outcome you want, you can't program it. Create a

[Rails] Bonus talk for MagicRuby 2012! Register now!

2012-09-06 Thread Jeremy McAnally
Good news everyone! We just announced a bonus talk for Magic Ruby 2012 (presented by GitHub)! Johan Scheffler, Hungry Academy graduate and now Living Social engineer, will be talking about his experiences in the program and how the patterns of learning they used there can be generally applied.

[Rails] Re: get post methods in controller's test

2012-09-06 Thread Salvatore Pelligra
Ok, thanks to both of you for clearing my mind :) -- 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

Re: [Rails] Image question

2012-09-06 Thread roelof
Op donderdag 6 september 2012 15:04:48 UTC+2 schreef Hassan Schroeder het volgende: On Wed, Sep 5, 2012 at 10:20 PM, roelof rwo...@hotmail.com javascript: wrote: I mean that I choose the place for the image. So at all the places there is no fixed place for the image, See for

Re: [Rails] Image question

2012-09-06 Thread Hassan Schroeder
On Thu, Sep 6, 2012 at 6:48 AM, roelof rwob...@hotmail.com wrote: But how can I then make the place. Must I use a x and y or can I use words to describe what I want. I'm not sure I understand the question. But if you want to e.g. have a picture between paragraphs 2 and 3, just write a helper

[Rails] Re: Regexp pre_match

2012-09-06 Thread Rick
http://www.ruby-doc.org/core-1.9.3/MatchData.html#method-i-pre_match On Thursday, September 6, 2012 1:40:31 AM UTC-4, John Merlino wrote: I looked in ruby documentation http://www.ruby-doc.org/core-1.9.3/Regexp.html I cannot find a method called pre_match but its used in Rails...

Re: [Rails] Image question

2012-09-06 Thread roelof
Op donderdag 6 september 2012 15:57:09 UTC+2 schreef Hassan Schroeder het volgende: On Thu, Sep 6, 2012 at 6:48 AM, roelof rwo...@hotmail.com javascript: wrote: But how can I then make the place. Must I use a x and y or can I use words to describe what I want. I'm not sure I

[Rails] Question ?

2012-09-06 Thread Fahim Patel
by using @javascript tag in feature file my testing browser is occur on Mozilla fire fox, but i wish to test my web app in different browser. I wish to test on Google chrome,IE,Opera. How to configure with different browser ? -- You received this message because you are subscribed to the

[Rails] Re: Regexp pre_match

2012-09-06 Thread John Merlino
yep, last_match returns a MatchData object, which contains some wrapper methods, including a string of the last successful pattern match. Hence, pre_match would fall under MatchData, not Regexp. On Sep 6, 10:21 am, Rick richard.t.ll...@gmail.com wrote:

[Rails] Re: modules

2012-09-06 Thread John Merlino
thanks for response On Sep 6, 5:32 am, Frederick Cheung frederick.che...@gmail.com wrote: On Thursday, September 6, 2012 2:39:00 AM UTC+1, John Merlino wrote: module ActionView   module Helpers     module FormHelper       def form_for(foo, bar)          instantiate_builder(foo, bar)

[Rails] Assets are not compiling

2012-09-06 Thread Loganathan Sellapa
Hi All, I have the css assets as in the below order . *Assets structure:* assets/stylesheets ---application.css.erb ie/application_ie.css.erb * In my layout file:* * %= stylesheet_link_tag application % !--[if IE] %= stylesheet_link_tag ie/application_ie %

[Rails] Re: modules

2012-09-06 Thread John Merlino
There's another situation like this:   ActiveSupport.on_load(:action_view) do     cattr_accessor(:default_form_builder) { ::ActionView::Helpers::FormBuilder }   end This is ActionView::Helpers::FormHelper. But I believe that self in the context of the block refers to ActionView, because on_load

[Rails] Rails 3.2.8 production site 10x slower than development site

2012-09-06 Thread Nick Snels
I have a live production site (production mode) running alongside a test site running in development mode. They both run on the same machine, using Rails 3.2.8. If I request a page on the production site, it takes approximately 4-5 seconds to load the page. If I request the same page on the test

[Rails] [JOBS] Seeking a ROR Ninja

2012-09-06 Thread chansdad
We are seeking a freelance ROR Ninja to turn the poc of our upcoming site ( werindia.com) into a scalable web app . Please respond with your skills and experience. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group,

[Rails] Looking for a developer to help with RoR SaaS project

2012-09-06 Thread Vlad Leetventchouk
Hello, I am looking for help with RoR development for SaaS project. Please, call or email me if interested. Thank you, Vlad Leetventchouk vlad.leetventch...@gmail.com Cell 415-373-7745 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

Re: [Rails] Looking for a developer to help with RoR SaaS project

2012-09-06 Thread VIKRAM KUMAR MISHRA
Hi Vlad, I am interested to assist you. On Fri, Sep 7, 2012 at 5:32 AM, Vlad Leetventchouk li...@ruby-forum.comwrote: Hello, I am looking for help with RoR development for SaaS project. Please, call or email me if interested. Thank you, Vlad Leetventchouk vlad.leetventch...@gmail.com