Tag Archives: Ruby on Rails

Presenters: for a more object oriented view approach (and a better testing)!

I made this post more to express my admiration to the presenters pattern than to show something new.
Presenters makes the testing easier and the view more elegant.

This tutorial is a simple user CRUD, where the user informs name, email, date of birth and if the data should be private.
If the data should be private, the informations of email and date of birth will not be shown (will show a “Hidden” label instead).

Running sample

http://fpastore-02.herokuapp.com/

Final version repository

https://github.com/fpastore/02-presenters

Pre-requisites

Please, read first: Bootstrap Project for the Tutorials

Continue reading

Advertisements
Tagged , , ,

Invitation Modal

In this tutorial I will show how to create a invitation modal, where the user puts some emails, than the application sends an invitation email for each one.

Running sample

http://fpastore-01.herokuapp.com/

Final version repository

https://github.com/fpastore/01-invitations
Continue reading

Tagged , ,

Bootstrap Project for the Tutorials

Bootstrap project contains all configuration needed to start this blog tutorials.

You just need to clone this project, run bundle install and start following the tutorials:

#console
git clone https://github.com/fpastore/bootstrap.git
bundle install

Because there are already excellent tutorials available, I will not show how to configure this bootstrap application, but I will leave the tutorials that inspired me to use this tools.
Continue reading

Tagged