Tags » Ruby On Rails

Skipping Active Record validations in Rails

1. Skipping all validations written in the model.

This can be achieved by passing validate: false for save /create method

E.g.

@book.save(validate: false)

2. Skipping individual validations… 114 more words

Ruby On Rails

Skipping Active Record validations in Rails

1. Skipping all validations written in the model.

This can be achieved by passing validate: false for save /create method

E.g.

@book.save(validate: false)

2. Skipping individual validations… 114 more words

Ruby On Rails

Selecting Indian States in Rails

Just last week I coded a miracle Rails app. I say miracle because there was no client pressure. I had never seen like it. Though it was my friend, a client is a client, he must be stupid. 106 more words

My experience at RubyConf Brasil, 2014

This was my first time attending Rubyconf Brasil and it is one of the best experience I have ever had at a conference. The conference for the speakers started a day early. 1,364 more words

Ruby On Rails

Consuming RESTful API on Rails

It’s great to consume APIs. Here we got a Rails way to do this. For this example code we will use “Week” model.

Note: If RESTful API its provided by default Rails, json.builder files and methods in controllers should be working. 77 more words

Ruby On Rails

Learning to Code: Beginning

Be willing to fail. Let yourself fail. Fail in the way and the place where you would want to fail. Fail, pick yourself up and fail again.

597 more words
Code

MYSHOP

Finished building tweaked version of Depot app from Agile Web Dev with Rails 4. Some things I’m still not quite understanding…but I was able to change things around enough and still get it to work. 30 more words

Ruby On Rails