My helper methods in controller

后端 未结 3 460
难免孤独
难免孤独 2021-01-02 08:57

My app should render html, to answer when a user clicks ajax-link.

My controller:

def create_user
  @user = User.new(params)
  if @user.save
    stat         


        
3条回答
  •  生来不讨喜
    2021-01-02 09:22

    Take that! http://apotomo.de/2010/04/activehelper-rails-is-no-pain-in-the-ass/

    That's exactly what you were looking for, dude.

提交回复
热议问题