net.tutsplus.com Archives - 29 August 2013, Thursday

Now unlike other payment options, like a credit card or PayPal, there is no third party who handles the charge, so you can't just enter your number or login to pay. Instead, it creates a custom wallet per transaction, and gives you 15 minutes to transfer the amount specified into that...

Twice a month, we revisit some of our readers’ favorite posts and sessions from throughout the history of Nettuts+. This tutorial series first published in February. In this Session, we’ll be taking a look at Sinatra ; a small, yet incredibly powerful DSL for quickly creating Ruby web...

Dan Croak is the Chief Marketing Officer of the prominent development shop thoughtbot . Before he moved to San Francisco to start thoughtbot’s west coast branch, Dan was a friend of mine in Boston who helped me learn the ins and outs of Ruby on Rails. Dan’s a good guy to know because ...

Rails has seemingly set the web development world on fire these past few years. Popular web applications like Basecamp and Twitter have pushed Rails into the limelight as an excellent framework that any programmer (or even non-programmer) can quickly use to create applications. One of...

His intent was mostly to point out a common security issue with many Rails apps that results from a feature, known as mass assignment (and did so rather loudly). In this article, we'll review what mass assignment is, how it can be a problem, and what you can do about it in your own ap...

Like I said, Active Record is an ORM. This means it's a layer of Ruby code that runs between your database and your logic code. When you need to make changes to the database, you'll write Ruby code, and then run migrations, which we'll review soon. These migrations make the actual cha...

Related:

Ruby is a language with a set of powerful features – the most powerful arguably being Blocks, Procs, and Lambdas. In short, these features allow you to pass code to a method and execute that code at a later time. Despite regularly using these features, many developers don’t fully unde...

Rails was created with the goal of increasing programmers’ happiness and productivity levels. In short, with Rails you can get started with a full-stack web application by quickly creating pages, templates and even query functions. Rails heavily emphasizes “Convention over Configurati...

MVC means that it follows the Model-View-Controller paradigm, so that you can clearly separate concerns when developing an application. This allows your core business logic to be in a single place, avoiding duplication and assisting with maintenance. It follows a RESTful, resource-ori...

Isn’t it funny how most “introduction to Ruby on Rails” screencasts are overly simplistic, and rely on generators like scaffolding? The teacher typically follows up the tutorial by stating that most Rails developer don’t use scaffolding generators. Well that’s not much help then! I’d ...

I know it sounds boring (it does to me), but it’s a great example and is used everywhere for a reason: it’s simple, you can finish that kind of tutorial in under an hour, and you learn the basics very fast. Now, if you read the book from assignment four, you should already have enough...

So now that we have an action, go to the app/views folder. We are going to create a view so when a user requests that URL, they actually see something. You may have noticed that there is a new folder in here named articles; this folder was created when we generated the controller. So,...