Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Philippe Lang's latest activity

Saturday, October 23 2010
5855 HABTM relation & update_attributes was updated in Ruby on Rails
  • Philippe Lang
    Philippe Lang commented at 4:51 PM

    Sorry, this was my mistake. I had to add :role_ids in the list of accessible attributes and now it works great.

    attr_accessible :email, :password, :password_co...
  • Philippe Lang
    Philippe Lang commented at 4:41 PM

    Hi Cesario,

    The only thing I did not mention is that the users table has been generated by devise. The model looks like this:

    class User < ActiveRecord::Base
     ...
Friday, October 22 2010
5855 HABTM relation & update_attributes was created in Ruby on Rails
  • Philippe Lang
    Philippe Lang created the ticket at 4:00 PM

    Hi,

    I have the following models:

    class User < ActiveRecord::Base
      has_and_belongs_to_many :roles
    end
    class Role < ActiveRecord::Base
      has_and_belongs_to_many...
Friday, October 15 2010
5813 Rails UJS driver events was created in Ruby on Rails
  • Philippe Lang
    Philippe Lang created the ticket at 8:31 AM

    Hi,

    Rails UJS driver generates 5 differents javascript events during an ajax call:

    • ajax:before
    • ajax:complete
    • ajax:success
    • ajax:failure
    • ajax:after

    In order to ...

Thursday, September 23 2010
5682 UJS & partial possible bug was updated in Ruby on Rails
  • Philippe Lang
    Philippe Lang commented at 8:51 AM

    Hum, I think I understand better now. As you say "JS code on clients side operates with already rendered strings". That means rails tries to pre-render both par...

  • Philippe Lang
    Philippe Lang commented at 7:21 AM

    When rendering list.html.erb, I thought that only the _list_add.html.erb partial was rendered, with a link allowing the rendering of the next partial through UJ...

  • Philippe Lang
    • Tag changed from illegal response, partial, ujs to illegal instruction, partial, ujs
    by Philippe Lang at 7:04 AM

    Hi Marjan,

    Each partial renders the other, but only after a click, since "link_to_function" is used. This shouldn't be a problem as far as I understand. But you...

Wednesday, September 22 2010
5682 UJS & partial possible bug was created in Ruby on Rails
  • Philippe Lang
    Philippe Lang created the ticket at 10:34 AM

    Hi,

    I'm new to rails, so this might be my fault instead of a bug. But at least it sounds odd. Here are a few files:

    list.html.erb

    <table>
    <% @boxes.each do |bo...