ruby on rails - Is RoR 'routes' file an alternative for Apache 'mod_rewrite' module? -


i'm starting web developer , following question sake of connecting several new things in brain: ror 'routes' file alternative apache 'mod_rewrite' module?

thanks in advance participating.

it's similar in list of url patterns, each pattern having rules associated it.

the main difference routes internal rails: mod_rewrite come decision route, , serve file, or pass request on proxy handle, can thought of standalone process in request pipeline.

routes.rb on other hand can thought of runs inside rails , decides object (where objects controllers) should have method called on it, passing through request object. maybe isn't happens it's this. rails black box request comes in , response comes out, , routes inside box.

so, guess it's alternative mod_rewrite, because instead of using mod_rewrite apache pass requests rails , let rails (using routes.rb code) figure out. it's kind of different thing.

edit: re-read , realised it's pretty vague. maybe else give more specific answer :)


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -