On Sep 8, 2013, at 9:44 AM, Justin Scott <[email protected]> wrote:

> 
>> Rails is a framework, cf is a language. There's no comparing if the two.
> 
> I would disagree somewhat.  Rails is a framework, yes, but nearly
> everyone who codes for the web in Ruby uses Rails, so framework or
> not, it's effectively "the way" and might as well be part of the
> language as far as web development is concerned.
> 
There's also another popular web framework for ruby which is a much lower level 
one.  It's called Sinatra, and if you're doing API services, it's usually the 
goto one.

>> Not sure what you're considering to be complicated about it.
> 
> Relatively speaking "@episode =
> Episode.find(params[:episode][:episode_id])" seems more complicated
> than "url.episode" to retrieve the URL value.
> 
This is not only fetching the url variable, it's grabbing the Episode model 
from the db

>> The author of that blog post looks to be relatively new to rails as
>> hardly anyone hard codes params into strings for urls.
> 
> That's the crux of what I was trying to determine.  Not being a Rails
> developer myself I don't know if what this guy was doing is standard
> or if they were just using a more complex method for some reason.
> 
>> You almost always use the rails URL helper functions.
> 
> So if this guy is using a non-standard way to get at a URL value, what
> would the Rails equivalent of "url.episode" be?
> 

params[:episode]


> 
> -Justin
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:366956
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm

Reply via email to