[Rails] Re: hostingrails.com appears to have had an ownership change

2010-06-06 Thread Mickael Faivre-Macon
Hi, Same here. I have 5 small websites hosted at hostingrails.com. Since April, I have much troubles with my apps. I already wrote to the sales. === Your new support system, just for opening a technical support ticket is really annoying. With the old you could open a ticket in

[Rails] Re: updated rails now missing rails gem

2010-02-16 Thread Mickael Faivre-Macon
Had the same problem. Thank you so much. Mickael. and figured it out. thin can't cope with rack 1.1.0. uninstalled the rack 1.1.0 gem and all is well again. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Problem with javascript_include_tag with :cache

2009-08-10 Thread Mickael Faivre-Macon
bump ! -- 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

[Rails] Re: getting the response body

2009-07-19 Thread Mickael Faivre-Macon
Great Gavin, thanks ! Gavin Morrice wrote: Why not try: def destroy id = params[:id] render :update do |page| page.alert( THIS TEXT ) if Job.find(:all, :conditions= [type_id=?,id]).size 0 end end -- Posted via http://www.ruby-forum.com/.

[Rails] getting the response body

2009-07-14 Thread Mickael Faivre-Macon
Hi, In my view I have link_to_remote(image_tag(trashcan.gif), :url={:action='destroy', :id=jobtype.id}, :confirm=I18n.t(:confirm_action), :success=$('el_#{jobtype.id}').fade(), :failure=alert('HERE I WANT THE TEXT GENERATED BY THE CONTROLLER')) And in the controller: def destroy id =

[Rails] Re: link_to_remote option :onsuccess, execute js function

2009-05-18 Thread Mickael Faivre-Macon
I thought the :success only refer to the div id to update in case on success ? Mickael. Kad Kerforn wrote: How should I define the :onsuccess option in my - link_to_remote - tag, to execute a Js function I wrote : :success = toggleButton(this, /db_bfilter/i); 'this' is the current

[Rails] getting a real int from DB

2008-12-09 Thread Mickael Faivre-Macon
Hi, I have a User class with many projects : has_many :projects, :through=:membership, :select = memberships.active, projects.* The active field in the memberships table is an int. So why this works : def active_projects projects.select{|p| p.active=='1'}.sort_by {|p|