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.

inetufo's latest activity

Wednesday, October 20 2010
5848 “undefined method” when calling helper method in ApplicationHelper module fro... was created in Ruby on Rails
  • inetufo
    inetufo created the ticket at 3:07 PM

    I define a method in ApplicationHelper module

    module ApplicationHelper

    def mymethod
    
    end
    

    end

    class MyController < ApplicationController
    def show

       mymethod
    
    ...
Sunday, October 17 2010
5820 Singular Resource mapping to plural controller in rails 3 was updated in Ruby on Rails
  • inetufo
    inetufo commented at 4:12 PM

    I found a solution already by specifying the :controller param

    resources :users do

    resource :wall, :controller => "wall" do

    post :add_comment
    

    end end

5828 Cookies cann't be saved in rails3? was updated in Ruby on Rails
  • inetufo
    inetufo commented at 4:09 PM

    all above the ruby version is ruby 1.8.7, use gem updating everything to the lasted version

  • inetufo
    inetufo commented at 3:55 PM

    I have tested this issue under several environments
    1. Windows7 rails3 IE8, cookies can be saved: No
    2. Windows7 rails 2.3.9, cookies can be saved: Yes

    3.Window...

  • inetufo
    inetufo created the ticket at 11:27 AM

    I put this code in my controller's action

    cookies[:name] = {
        :value   => "test" ,
         :expires => 2.hours.from_now
        }
    

    and i found out that the cookies...

Saturday, October 16 2010
5820 Singular Resource mapping to plural controller in rails 3 was updated in Ruby on Rails
  • inetufo
    inetufo commented at 9:17 AM

    Thanks for the reply, but in my situation, a user just has one wall.I mean the url is like http://xxx/user/:user_id/wall, and will never be http://xxx/user/:use...

  • inetufo
    inetufo created the ticket at 8:26 AM

    resources :users do

      resource :wall do
        post :add_comment
      end
    end
    

    end

    and the route generated is

    user_wall POST /users/:user_id/wall(.:format) {:control...

Monday, October 04 2010
5757 Rails 3 link_to :method=> :delete doesn't work correctly in Internet Explorer 8 was created in Ruby on Rails
  • inetufo
    inetufo created the ticket at 7:33 PM

    <%= link_to 'Destroy', user, :confirm => 'Are you sure?', :method => :delete %>
    when the confirm dialog shows, the request has already posted and the destroy ac...