Rails is a framework, cf is a language. There's no comparing if the two. 

Not sure what you're considering to be complicated about it. The author of that 
blog post looks to be relatively new to rails as hardly anyone hard codes 
params into strings for urls. You almost always use the rails URL helper 
functions. 

The episode_id var is actually accessed with "params[:episode_id]". The code he 
is showing is pulling the var out of a form that's been submitted. 

Sent from my iPad

On Sep 8, 2013, at 7:27 AM, Vivec <[email protected]> wrote:

> 
> Rails is more complicated than CF , period.
> The things you wish you knew before you started along a particular road!
> 
> ^_^
> 
> I've been told that the ruby/rails way is better. I can't figure out why,
> yet.
> Maybe someone here can explain...
> 
> On 8 September 2013 00:45, Justin Scott <[email protected]> wrote:
> 
>> 
>> Not really CF specific so I'm putting this here instead of CF-Talk.
>> 
>> I saw this article come through my news feed regarding URL parameters
>> in Rails and thought, "hmm, is that really how Rails handles URL
>> variables?"
>> 
>> 
>> http://agilewarrior.wordpress.com/2013/08/31/how-to-pass-parameters-as-part-of-the-url-in-rails/
>> 
>> I'm curious if anyone here "speaks" rails and can weigh in on the way
>> this article suggests handling URL variables.  On the face it seems a
>> lot more complicated than the CF url scope, but I'm not well versed in
>> Rails so am I missing something or is this the proper way to do that
>> in Rails?
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:366953
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm

Reply via email to