- Forward from Rails to Servlet/JSP. See
demo_controller.rb
#index
andattributes.jsp
. - Include Rails response in JSP output. See
demo.jsp
. - Arbitrary rendering with servlet response from Rails. See
demo_controller
#not_found
. - Forwarding from servlets to Rails should work fine, but I haven't tried it.
This file contains 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
CommandUtils.makeBookmarkletCommand({ | |
name: "Ruler", | |
url: "javascript:void('http://centricle.com/tools/favelets/','v1.2','with%20code%20from%20fry@fcc');drg=false;d=document;db=d.body;d.ondblclick=kR;d.onkeypress=kR;rk=false;mC=prompt('Color:','red');mq=db.appendChild(d.createElement('div'));mqs=mq.style;mqs.position='absolute';mqs.border='dashed%201px%20red';mqs.fontSize='0px';ctr=db.appendChild(d.createElement('div'));ctrs=ctr.style;ctrs.position='absolute';ctrs.top='-300px';ctrs.left='-300px';ctrs.width='85px';ctrs.background='%23eee';ctrs.padding='5px';ctrs.border='solid%201px%20%23ccc';ctrs.font='10px%20verdana,sans-serif';ctrs.width='85px';ctrs.zIndex='99';ctr.innerHTML='%3Cb%3ECurrent:%3C/b%3E%3Cbr%3E%20x:%3Cspan%20id=%22cX%22%3E0%3C/span%3E%20y:%3Cspan%20id=%22cY%22%3E0%3C/span%3E%3Cbr%3E%3Cb%3EBegin:%3C/b%3E%3Cbr%3E%20x:%3Cspan%20id=%22bX%22%3E0%3C/span%3E%20y:%3Cspan%20id=%22bY%22%3E0%3C/span%3E%3Cbr%3E%3Cb%3EEnd:%3C/b%3E%3Cbr%3E%20x:%3Cspan%20id=%22eX%22%3E0%3C/span%3E%20y:%3Cspan%20id%20=%22eY |
This file contains 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
user_api = { | |
:id => @user_profile.id, | |
:name => { | |
:first => @user_profile.given_name, | |
:last => @user_profile.surname | |
}, | |
:email => @user_profile.email, | |
:userid => @user_profile.userid, | |
:title => @user_profile.title, | |
:organization => @user_profile.organization, |
This file contains 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
// Extracted from http://github.com/madrobby/prototype_helpers/tree/master/defaultValueActsAsHint | |
// Accepts JQuery elem as input for hiding/unhiding related elements. | |
$.fn.defaultValueActsAsHint = function(elems){ | |
this.get(0)._default = this.attr('title'); | |
return $(this).focus(function(){ | |
if(this._default != this.value) return; | |
this.value = ''; | |
$(this).removeClass('quiet'); | |
elems.each(function(){$(this).show()}); | |
}).blur(function(){ |
This file contains 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
SELECT * | |
FROM (SELECT raw_sql_.*, | |
ROWNUM raw_rnum_ | |
FROM (SELECT activities.* | |
FROM activities | |
JOIN groups_user_profiles other_groups_user_profiles | |
ON activities.user_profile_id = other_groups_user_profiles.user_profile_id | |
JOIN groups_user_profiles my_groups_user_profiles | |
ON other_groups_user_profiles.group_id = my_groups_user_profiles.group_id | |
AND my_groups_user_profiles.user_profile_id = 78197 |
This file contains 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
<plist version="1.0"> | |
<dict> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>PATH</key> | |
<string>/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin</string> | |
</dict> |
This file contains 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
[INFO] file:/Users/richmanalang/.m2/repository/org/jruby/jruby-complete/1.1.6/jruby-complete-1.1.6.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/example_methods.rb:81:in `instance_eval' | |
[INFO] file:/Users/richmanalang/.m2/repository/org/jruby/jruby-complete/1.1.6/jruby-complete-1.1.6.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/example_methods.rb:81:in `eval_block' | |
[INFO] file:/Users/richmanalang/.m2/repository/org/jruby/jruby-complete/1.1.6/jruby-complete-1.1.6.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/example_methods.rb:15:in `execute' | |
[INFO] file:/Users/richmanalang/.m2/repository/org/jruby/jruby-complete/1.1.6/jruby-complete-1.1.6.jar!/timeout.rb:48:in `timeout' | |
[INFO] file:/Users/richmanalang/.m2/repository/org/jruby/jruby-complete/1.1.6/jruby-complete-1.1.6.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/example_methods.rb:12:in `execute' | |
[INFO] file:/Users/richmanalang |
This file contains 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
[~/dev/jruby-rack(master)] jruby -S rake | |
(in /Users/richmanalang/dev/jruby-rack) | |
src/main/java/org/jruby/rack/DefaultRackApplication.java:10: cannot find symbol | |
symbol : class Ruby | |
location: package org.jruby | |
import org.jruby.Ruby; | |
^ | |
src/main/java/org/jruby/rack/DefaultRackApplication.java:11: cannot find symbol | |
symbol : class RubyIO | |
location: package org.jruby |
This file contains 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
[~/dev/jruby-rack(master)] mvn install | |
[INFO] Scanning for projects... | |
WAGON_VERSION: 1.0-beta-2 | |
[INFO] ---------------------------------------------------------------------------- | |
[INFO] Building JRuby-Rack | |
[INFO] task-segment: [install] | |
[INFO] ---------------------------------------------------------------------------- | |
[INFO] [jruby-rake:rake {execution: unpack-gem}] | |
[INFO] rake already installed | |
[INFO] (in /Users/richmanalang/dev/jruby-rack) |
This file contains 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
gem install actionmailer actionpack actionwebservice activerecord activerecord-jdbc-adapter activeresource activesupport acts_as_ferret addressable addresslogic andre-geokit ar_mailer arrayfields attributes authlogic bcrypt-ruby bj bones capistrano cgi_multipart_eof_fix cheat cldwalker-console_update cmdparse columnize configuration daemons data_objects diff-lcs directory_watcher dm-aggregates dm-core dm-migrations dm-timestamps dm-types dm-validations dnssd do_sqlite3 dust echoe eventmachine extlib facets faker fast_xs fastercsv fastthread fattr fcgi feedvalidator ferret flexmock foca-integrity foca-sinatra-diddies gem_plugin giraffesoft-is_taggable giraffesoft-timeline_fu gitjour grit haml hawler highline hoe hpricot httpclient jamis-fuzzy_file_finder jeremymcanally-context jeremymcanally-matchy jeremymcanally-pending jeremymcanally-stump josevalim-rails-footnotes json kode launchy libxml-ruby linecache lockfile logging mailfactory main maruku memcache-client mime-types mislav-will_paginate mocha mojombo-gr |
OlderNewer