If you are scoped you can do simple form_for now.
If your routes are say like this:
scope ':organization', :context => do
resources :employees
end| 71vzn91:~ jcalvert$ torquebox run -b 0.0.0.0 | |
| [WARNING] jcalvert-knob.yml has not been deployed. Starting TorqueBox anyway. | |
| ========================================================================= | |
| JBoss Bootstrap Environment | |
| JBOSS_HOME: /Users/jcalvert/.rvm/gems/jruby-1.6.5/gems/torquebox-server-2.0.0.beta1-java/jboss | |
| JAVA: /System/Library/Frameworks/JavaVM.framework/Home/bin/java |
If you are scoped you can do simple form_for now.
If your routes are say like this:
scope ':organization', :context => do
resources :employees
end| -gem 'httparty' | |
| +#gem 'httparty' |
| before do | |
| unless ['10','192','127'].include? request.ip.to_s.gsub /(.*?)\..*/,'\\1' | |
| halt(404, "Not found") #I should probably throw 403, but in this case it's sensitive and I'd rather make like a hole. | |
| end | |
| end |
| before do | |
| request[:connection] = ActiveRecord::Base.connection_pool.checkout | |
| end | |
| after do | |
| ActiveRecord::Base.connection_pool.checkin(request[:connection]) if request[:connection] | |
| end |
| module Multiball | |
| module Multicaster | |
| def multi_method(proxied_thing, *args) | |
| args.each do |method| | |
| define_method method do |*method_args| | |
| Multiball.servers.values.each{|value| value.send(proxied_thing).send method, method_args} | |
| end | |
| end | |
| end |
| require 'rubygems' | |
| require 'sequel' | |
| require 'sqlite3' | |
| def readFile(filePath) | |
| #Creating file handler | |
| STDOUT.sync = true | |
| fileObj = File.open(filePath) | |
| begin | |
| #Making use of in-memory database for faster and better performace | |
| db = Sequel.sqlite |
| GET /:locale/services/foo/:name {:action=>"config", :controller=>"services/foo"} | |
| GET /:locale/services/bar/:name {:action=>"config", :controller=>"services/bar"} |
| function ssh_connection() { | |
| if [[ -n $SSH_CONNECTION ]]; then | |
| echo "%{$fg_bold[red]%}(ssh) " | |
| fi | |
| } | |
| PROMPT=$'\n$(ssh_connection)%{$fg_bold[green]%}%n@%m%{$reset_color%}:%{$fg_bold[blue]%}%2/%{$reset_color%}:$ ' | |
| ZSH_THEME_PROMPT_RETURNCODE_PREFIX="%{$fg_bold[red]%}" | |
| ZSH_THEME_GIT_PROMPT_PREFIX=" $fg[white]‹ %{$fg_bold[yellow]%}" |
| Glad: | |
| To be off subversion!!!!!!!! | |
| To feel finally over a significant hump. | |
| That we've got some traction to improving our process. | |
| Sad: | |
| That we have yet to realize that e-Release is silly. | |
| Corollary: that we're not quite ready for something like CI/CD | |
| That I didn't get to work on new stuff rather than fixing bugs. |