News for hackers. Stuff that matters.
Re:It's about time to start fighting against the Rails “magi... by richbradshaw on Tuesday December 14, 2010 @08:01AM (#2004009)
I've tried Rails a couple of times, but have never persisted with it as I can't work out how to do anything other than the default stuff. I make scaffolding, which is great, but then I want to take the scaffolding, use it as a starting point and change it. But the scaffolding doesn't seem to exist anywhere - it's just magically in existence.

I want to add authentication - every tutorial recommends different packages to use, but I don't want som prewritten code, I want to set a session cookie, I want to read it, I want to add stuff to databases manually, I don't want some random code providing this without understanding what's going on!

I'm sure that it's an easy thing to work out, but every time I get fed up with not knowing where anything is coming from so I give up and go back to what I know.

Re:It's about time to start fighting against the Rails “magi... by jeremymcanally on Tuesday December 14, 2010 @08:36AM (#2004068)
> it's just magically in existence

You must not have tried Rails past say 1.2 or so (I can't remember when they took that out). Scaffolding has been generated for some time, which means the code is just spit into the app/ directory. You can go in and change whatever you want with it.

As for the rest of your complaint, then perhaps something as abstract as Rails isn't really for you (Sinatra maybe?). Though really, why do you want to do all that manually? Just read the framework docs, which are quite good now, and code, understand how they work (really, it's not hard I promise), and use the abstractions. You'll thank yourself later.

Re:It's about time to start fighting against the Rails “magi... by richbradshaw on Thursday December 16, 2010 @02:42PM (#2013305)
These comments have all been really useful – it was a while ago that I used Rails – seems that things have come a long way since I played. I'll have another look + at Sinatra. Thanks!
Re:It's about time to start fighting against the Rails “magi... by jcromartie on Tuesday December 14, 2010 @08:28AM (#2004050)
> I don't want some random code providing this without understanding what's going on!

It's an open source framework. Gems and plugins are nearly all open source by nature. And meanwhile, I'd assume you're OK using web browsers and operating systems without reading all of the source code.

Re:It's about time to start fighting against the Rails “magi... by cmelbye on Tuesday December 14, 2010 @08:53AM (#2004113)
A long time ago, scaffolding consisted of adding "scaffold" to your model definition and it would start serving up that data with the default scaffold views. Obviously that's not very desirable, so that's been removed and now the way to scaffold generates code that you can look at it, edit it, etc. "rails generate scaffold post title:string body:text"
Re:It's about time to start fighting against the Rails “magi... by joshuacc on Tuesday December 14, 2010 @10:00AM (#2004354)
I highly recommend taking a look at http://railstutorial.org/ which takes exactly the approach that you'd like. It eschews scaffolding and teaches you how to build everything up from scratch.
Re:It's about time to start fighting against the Rails “magi... by ceejayoz on Tuesday December 14, 2010 @12:01PM (#2004784)
Looks neat, but man does that web design ever remind me of the "Make millions posting to Twitter" scams.
Re:It's about time to start fighting against the Rails “magi... by joshuacc on Tuesday December 14, 2010 @12:38PM (#2004942)
Just in case it wasn't obvious, you can read the whole thing for free here: http://railstutorial.org/ruby-on-rails-tutorial-book
Re:It's about time to start fighting against the Rails “magi... by getsat on Tuesday December 14, 2010 @12:14PM (#2004839)
It's a landing page for a product; they all look like that because they convert REALLY, really well.
Re:It's about time to start fighting against the Rails “magi... by reu on Tuesday December 14, 2010 @12:23PM (#2004883)
So, if there is something REALLY great in Rails is its community. For instance, this is a free, high quality screen cast explaining exactly your authentication doubts http://railscasts.com/episodes/21-super-simple-authenticatio...
Re:It's about time to start fighting against the Rails “magi... by DannoHung on Tuesday December 14, 2010 @08:27AM (#2004049)
Rails is not right for you at all. You want something more basic like Sinatra.