Skip to content

Instantly share code, notes, and snippets.

View j1n6's full-sized avatar
🎯
Focusing

Jing Dong j1n6

🎯
Focusing
View GitHub Profile
sudo apt-get install smlnj
<%= link_to_remote "Create Post", :url => {:controller=>'posts', :action =>'new'}, :method => :post, :with =>"getParameters();" %>
<% @param = capture do %>
<%= javascript_tag "document.write(getParameter());" %>
<% end %>
<%= link_to_function "Create Post" do |page|
page.redirect_to "/posts/new" + "?" + @param
end %>
@current_user = mock_model(User, :id => 1)
controller.stub!(:login_required).and_return(:true)
controller.stub!(:current_user).and_return(@current_user)
<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script>
<![endif]-->
<!--[if lt IE 8]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
<![endif]-->
20081202130543_create_group_categories.rb
config.active_record.timestamped_migrations = false
003_create_group_categories.rb
config.gem 'rspec', :lib => "spec", :version => '1.1.11'
config.gem 'rspec-rails', :lib => "spec/rails", :version => '1.1.11'