Ruby on Rails: Action without View

后端 未结 4 1636
伪装坚强ぢ
伪装坚强ぢ 2021-02-14 13:48

I have what I think is a very simple problem. I\'m coming from a PhP background, and used to do this all the time, so I may be looking at this the wrong way.

I am trying

4条回答
  •  礼貌的吻别
    2021-02-14 14:29

    Using

    print params[:email]
    

    will just print that value to the application logs, not into the response.

    You want this:

    render :text => params[:email]
    

提交回复
热议问题