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
/** | |
* This method is used by getAllBookUnitWithDepthRow() | |
* | |
* @param bookUnit | |
* @param delete | |
* @return List of bookunit with depth | |
*/ | |
private List<BookUnitWithDepthRow> getAllBookUnitWithDepth(BookUnit bookUnit, boolean delete) | |
{ | |
bookUnit = fetchBookUnitFromSessionBook(bookUnit); |
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
(in /home/web/sites/blog) | |
*** Couldn't load the application's configuration because something went wrong... *** | |
*** Don't worry, we'll bypass the application's configuration and just boot instead... *** | |
** Invoke db:migrate (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
rake aborted! | |
can't activate , already activated friendly_id-2.3.2 | |
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:101:in `specification' | |
/usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/locator.rb:81:in `plugins' |
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 node.nid AS nid, | |
node.title AS node_title, | |
node.created AS node_created | |
FROM node node | |
INNER JOIN users users ON node.uid = users.uid | |
LEFT JOIN node node_users ON users.uid = node_users.uid AND node_users.type = 'profile' | |
LEFT JOIN flag_counts flag_counts_node ON node.nid = flag_counts_node.content_id AND flag_counts_node.fid = 1 | |
LEFT JOIN term_node term_node_value_0 ON node.vid = term_node_value_0.vid AND term_node_value_0.tid = 499 | |
LEFT JOIN term_node term_node_value_1 ON node.vid = term_node_value_1.vid AND term_node_value_1.tid = 497 | |
LEFT JOIN term_node term_node_value_2 ON node.vid = term_node_value_2.vid AND term_node_value_2.tid = 498 |
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
WORKING PARAMS: | |
(rdb:221) y params | |
--- !map:HashWithIndifferentAccess | |
page_path: manuscripts/new | |
authenticity_token: /Y25Bb4F+SOnAyU9Rhl7NgTM6a5X6dKq/XmAdOOkUtg= | |
action: create | |
manuscript: !map:HashWithIndifferentAccess | |
msid: msid3910 | |
title: new ms |
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
before_filter :setup_counts | |
def pending_resubmission | |
hobo_index @pending_resubmission ||= Manuscript.search("pending_resubmission", :status) | |
end | |
private | |
def setup_counts | |
@pending_resubmission_count ||= (@pending_resubmission ||= Manuscript.search("pending_resubmission", :status)).count |
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
<?php | |
echo "<pre>"; | |
print_r($result); | |
echo "</pre>"; | |
?> |
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
/Users/apolzon/.rvm/gems/ruby-1.8.7-p249@rails2/gems/hobo-1.0.0/lib/hobo/dryml/template.rb:968:in `dryml_exception' | |
/Users/apolzon/.rvm/gems/ruby-1.8.7-p249@rails2/gems/hobo-1.0.0/lib/hobo/dryml/template.rb:613:in `parameter_tags_hash' | |
/Users/apolzon/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `map' | |
/Users/apolzon/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/rexml/parent.rb:40:in `each' | |
/Users/apolzon/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/rexml/parent.rb:40:in `each' | |
/Users/apolzon/.rvm/gems/ruby-1.8.7-p249@rails2/gems/hobo-1.0.0/lib/hobo/dryml/template.rb:593:in `map' | |
/Users/apolzon/.rvm/gems/ruby-1.8.7-p249@rails2/gems/hobo-1.0.0/lib/hobo/dryml/template.rb:593:in `parameter_tags_hash' | |
/Users/apolzon/.rvm/gems/ruby-1.8.7-p249@rails2/gems/hobo-1.0.0/lib/hobo/dryml/template.rb:539:in `tag_call' | |
/Users/apolzon/.rvm/gems/ruby-1.8.7-p249@rails2/gems/hobo-1.0.0/lib/hobo/dryml/template.rb:168:in `element_to_erb' | |
/Users/apolzon/.rvm/gems/ruby-1.8.7-p249@rails2/gems/hobo-1.0.0/l |
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_tag "user-ms-history", options_for_select(current_user.user_manuscript_history.manuscripts.map {|m| [m.title, "/manuscripts/" + m.id.to_s]}, :onchange => "alert('hi');") %> |
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
Using :joins | |
SELECT "manuscripts".* FROM "manuscripts" INNER JOIN "timelines" ON timelines.manuscript_id = manuscripts.id WHERE ((timelines.due_date < '2010-05-12') AND (manuscripts.status = 'received')) | |
Using :include | |
SELECT "manuscripts"."id" AS t0_r0, "manuscripts"."title" AS t0_r1, "manuscripts"."msid" AS t0_r2, "manuscripts"."created_at" AS t0_r3, "manuscripts"."updated_at" AS t0_r4, "manuscripts"."article_type_id" AS t0_r5, "manuscripts"."primary_author_id" AS t0_r6, "manuscripts"."status" AS t0_r7, "manuscripts"."pdf_file_name" AS t0_r8, "manuscripts"."pdf_content_type" AS t0_r9, "manuscripts"."pdf_file_size" AS t0_r10, "manuscripts"."pdf_updated_at" AS t0_r11, "manuscripts"."user_manuscript_history_id" AS t0_r12, "timelines"."id" AS t1_r0, "timelines"."created_at" AS t1_r1, "timelines"."updated_at" AS t1_r2, "timelines"."manuscript_id" AS t1_r3, "timelines"."due_date" AS t1_r4, "timelines"."duration" AS t1_r5 FROM "manuscripts" LEFT OUTER JOIN "timelines" ON timelines.manuscript_id = manuscripts.id W |
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
<%= link_to_remote "Preview Manuscript", | |
:url => { :action => "display_ipaper", :manuscript => @manuscript.id } | |
%> | |
(RJS file:) | |
page.replace "ipaper-display", Manuscript.find_by_id(params[:manuscript]).display_ipaper |
OlderNewer