This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
symbolic_hash = {a: 1, b: 2, c: 3} | |
string_hash = {"a" => 1, "b" => 2, "c" => 3} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ClientsController = Paloma.controller('Clients'); | |
ClientsController.prototype.index = function(){ | |
alert('This is the JS code for clients index action'); | |
// logic goes here | |
}; | |
ClientsController.prototype.show = function(){ | |
alert('This is the JS code for clients show action'); | |
// logic goes here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//= require paloma | |
//= require initializer | |
//= require page_specific/client/listing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Var ClientsController = Paloma.controller('Clients'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ClientsController = Paloma.controller('Admin/Clients'); | |
ClientsController.prototype.index = function(){ | |
alert('This is the JS code for admin clients index action'); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Admin::ClientsController < ApplicationController | |
def index | |
@clients = Client.all | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ClientsController = Paloma.controller('Clients'); | |
ClientsController.prototype.index = function(){ | |
// Call when client index action is fire | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//= require paloma | |
//= require initializer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready( function(){ | |
Paloma.engine.start(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Rails Paloma Application</title> | |
</head> | |
<body> | |
<%= yield %> | |
<%= insert_paloma_hook %> | |
</body> | |
</html> |