Daniel Ochoa

Daniel Ochoa

When in trouble or in doubt, run in circles scream and shout...


Last posted 15 days ago


About

Contact


Categories


Meta

Rails 4 on Heroku

Jun 03, 2013 | Posted in Ruby and Rails

Heroku3

Rails 4 ushers a new era of agile web development, and with it, new things to keep in mind when pushing your latest application to heroku.

Rails 4 uses ruby 2.0

Ruby 2 is required by rails 4. In order to have it recognized in heroku you need to add it to your gemfile below the source 'http://rubygems.org' line...

Read More


Sometimes it gets weird at the office

May 13, 2013 | Posted in Rants and Work

Img_1396_small

Everyone at the office started adding to it, and this came out after a couple of days. It had to be erased since a client was visiting.


Change user attributes in your User object without having to update the password...

Apr 22, 2013 | Posted in Ruby and Rails

Say you want to change some User attributes (not all of them) with some form. But, when you submit it, you get errors for the password and password confirmation validation. It's easy to understand why this is happening -- the user object will not update because it's not passing the proper validations for it's attributes, even though you are not ...

Read More


Disable all the contributed modules from a site in one drush line

Apr 20, 2013 | Posted in Drupal

If you work in drupal and you aren't using Drush, well, you should. Drush brings to the table many commands you can use to work with Drupal sites. Say you are working in a Drupal site, and you want to disable all contrib modules in one fell swoop. This one is just one of the things you can accompl...

Read More


I just got an idea...

Apr 16, 2013 | Posted in Rants

I just got an idea on how to extend this blog. Since I already have the models for validation and users built in, I'll just do some more adjustments to let anyone create his or her own blog - they will have their own subdomain and all, a beautiful backend interface, and above all - simple to use. I'll arm twist everyone at work to join muahaha.


Hello World!

Apr 15, 2013 | Posted in Untagged

Url

I've decided to invest my time in becoming a Rails developer. And for that end I need to start building apps. Reading huge amounts of material is useless if you don't apply what you are learning, so for my first project I decided to remake my website in rails. It is basically a blog with two pages, it shows my gravatar according to my user email...

Read More