Along with this there are more to Try Try
1. terminal.com 2. docker.com 3. amazon’s event drivern plateform
Google Launches Managed Service For Running Docker-Based Applications On Its Cloud Platform

Along with this there are more to Try Try
1. terminal.com 2. docker.com 3. amazon’s event drivern plateform
Try this thing in futurre man.
Cloud Computing | #CloudFoundry | Ruby | Go | OpenStack | Ansible | Docker | Jenkins
Filters are methods that are run before, after or “around” a controller action.
Filters are inherited, so if you set a filter on ApplicationController, it will be run on every controller in your application.
Before filters may halt the request cycle. A common before filter is one which requires that a user is logged in for an action to be run.
Before filters are run on requests before the request gets to the controller’s action. It can return a response itself and completely bypass the action.
The most common use of before filters is validating a user’s authentication before granting them access to the action designated to handle their request. I’ve also seen them used to load a resource from the database, check permissions on a resource, or manage redirects under other circumstances.
After filters are run after the action completes. It can modify the response. Most of the…
View original post 115 more words
Rails 4 Json data-type and forms to use.
Here is the link to discussion on Stackoverflow about the datatypes that Rails supports.
http://stackoverflow.com/questions/17918117/rails-4-datatypes
I found out rails also supports
hstore
json
array
ip_address
etc..
data types. i want to know to use them. plz help me to complete this post here.
Plz, go to this url….
I was in the same situation:
If you are like me,and Ryan Bates, you like doing the important things yourself. If there are errors, they are your errors.
Chances are you will want to create your Rails authentication from scratch yourself. Ryan of Railscasts has an excellent screencast about this.
I switched from Devise to the custom authentication using this screencast. It was a breeze.
So now comes the customisation. One of these is the all-important Rails authentication redirect back to the funnel a user came from after they are done signing in, or up.
This can actually be achieved very easily:
Say I have a CharitiesController, that I want to close to unauthenticated users. In line with Devise, I would do this to force them to authenticate:
1
2
|
class CharitiesController > ApplicationController
before_filter :authenticate_user!, except: [:show, :index]
|
In my ApplicationController, given i have set the user sign in route to user_login, I can define a return point:
1
2
3
4
5
6
7
8
9
10
11
12
|
class ApplicationCont
|
ITs time we learn this Awesome language called as RUBY.
This is an alternative for double-quoted strings, when you have more quote characters in a string.Instead of putting backslashes in front of them, you can easily write:>> %Q(Joe said: "Frank said: "#{what_frank_said}"")
=> "Joe said: "Frank said: "Hello!"""
The parenthesis “(
…)
” can be replaced with any other non-alphanumeric characters and non-printing characters (pairs), so the following commands are equivalent:>> %Q!Joe said: "Frank said: "#{what_frank_said}""!
>> %Q[Joe said: "Frank said: "#{what_frank_said}""]
>> %Q+Joe said: "Frank said: "#{what_frank_said}""+
You can use also:>> %/Joe said: "Frank said: "#{what_frank_said}""/
=> "Joe said: "Frank said: "Hello!"""
Used for single-quoted strings.The syntax is similar to %Q, but single-quoted strings are not subject to expression substitution or escape sequences.>> %q(Joe said: 'Frank said: '#{what_frank_said} ' ')
=> "Joe said: 'Frank said: '#{what_frank_said} '…
View original post 131 more words