Re: [Rails] Problem using render text in basic rails application

2018-01-07 Thread Robert Phillips
On Sunday, 7 January 2018 22:34:10 UTC, Phil wrote: > > > render text: is deprecated. Stick with render plain: . > > > Phil > > Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emai

[Rails] [Article] 7 Little-Known Ruby Methods To Help You Write Better Code

2018-01-07 Thread Jesus Castello
Hello! I would like to share with you an article where you will learn about some interesting Ruby methods that will help you write better Ruby code when used correctly. Here's the article: https://www.rubyguides.com/2017/10/7-powerful-ruby-methods/

Re: [Rails] Problem using render text in basic rails application

2018-01-07 Thread Phil Edelbrock
render text: is deprecated. Stick with render plain: . Phil > On Jan 7, 2018, at 2:12 PM, Robert Phillips > wrote: > > It works fine as far as this > > C:\blah>rails new test1 > > C:\blah\test1>rails server > > I edit application_controller.rb > > I add a function called hello > > def

[Rails] Problem using render text in basic rails application

2018-01-07 Thread Robert Phillips
It works fine as far as this C:\blah>rails new test1 C:\blah\test1>rails server I edit application_controller.rb I add a function called hello def hello render plain: "aasdf" end I edit the routes.rb file I add this line into the existing procedure within routes.rb root 'application#h