News for hackers. Stuff that matters.

maheswaran

Re:I'm learning RoR and finding it confusing. Any advice? on Thursday August 04, 2011 @01:28AM (#2844739)
The problem is that every single tutorial on RoR talks about dirty and useless scaffolding and resource features.

Just forget about resources and model path bullshit while learning RoR

Start with active record then learn basic mvc routes, controller and views. Pretend RoR is just php and get comfortables with the things you usually do in php. Then try to learn form_for and all the other bullshit out there.

From my personnal experience, never use any fancy features like form_for and all in a serious projects. When they upgrade rails your project will gets screwed. Stick to basics.

Amtrak.com is storing your password in plaintext

i just forgot my amtrak.com password and tried to reset it, this is what i gotDear <your-name>,Thank you for contacting Amtrak. The login information you requested is listed below. Please save this information for future reference.User ID: <youremailid@yourprovider> Password: <yourp-passwod>If you encounter any login difficulties, contact us online...

( Read More... | 6 comments | 18 points | on HN )
Re:Showoff on Wednesday April 20, 2011 @03:17PM (#2467972)
my bad, internal references will be relative only (<link href="../Images/favicon/16x16.ico" rel="Shortcut Icon" /> ) so no need for translation. i dont know why i thought what i thought
Re:Showoff on Wednesday April 20, 2011 @02:56PM (#2467890)
i havent tried showoff.io and little curious about how about internal reference translations? for example css files?

does this <link rel="stylesheet" href="localhost:3000/mystyle.css"/> translates to <link rel="stylesheet" href="myserv.showoff.io/mystyle.css"/> ???