gem install rails --pre
rails new my_app -T
var net = require('net'), | |
irc = {}, config; | |
config = { | |
user: { | |
nick: '', | |
user: '', | |
real: '', | |
pass: '' | |
}, |
$('#products').append('<%= j render(@products) %>'); | |
<% if @products.next_page %> | |
$('.pagination').replaceWith('<%= j will_paginate(@products) %>'); | |
<% else %> | |
$('.pagination').remove(); | |
<% end %> |
class Plan < ActiveRecord::Base | |
... | |
has_many :plan_additions, :inverse_of => :plan | |
validates_associated :plan_additions | |
accepts_nested_attributes_for :plan_additions | |
... |