Deprecated rails code?

20 views
Skip to first unread message

Timothy Wi

unread,
Jan 6, 2015, 7:58:25 AM1/6/15
to rubyonra...@googlegroups.com
Hello,

Is this code deprecated?

map.connect ''., :controller => "main", :action => "welcome"

I am trying to get it to work in the routes.rb file but I don't have any
luck.

Thanks

--
Posted via http://www.ruby-forum.com/.

Vivek Sampara

unread,
Jan 6, 2015, 8:06:58 AM1/6/15
to rubyonra...@googlegroups.com
HI, 

What is the rails version you're using ? 



--
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 emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e220216521b66b8438881c757ee3201e%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Timothy Wi

unread,
Jan 6, 2015, 8:11:24 AM1/6/15
to rubyonra...@googlegroups.com
Rails 4.2.0.rc3

Colin Law

unread,
Jan 6, 2015, 8:38:01 AM1/6/15
to rubyonra...@googlegroups.com
On 6 January 2015 at 13:11, Timothy Wi <li...@ruby-forum.com> wrote:
> Rails 4.2.0.rc3

Please quote the previous message when replying so that people know
what you are talking about.

map.connect is no more, have a look at the rails guide on routing to
see how to do it.
http://guides.rubyonrails.org/routing.html

If you are following a tutorial then find a more up to date one.
railstutorial.org is good and is free to use online.

Colin
Reply all
Reply to author
Forward
0 new messages