Rails 3 Completed 500 Internal Server Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you 500 internal server error rails ajax might have Meta Discuss the workings and policies of this site completed 500 internal server error in rails About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or
Rails Post 500 (internal Server Error)
posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of
Rails Internal Server Error
6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up 500 Internal Server Error up vote 4 down vote favorite 1 I'm following the tutorial here: http://guides.rubyonrails.org/getting_started.html Everything was working fine until I tried "8.1 Rendering Partial Collections" I started getting this error message: 500 Internal Server Error If you are the administrator of this website, then please read this web application's log file and/or the web server's log file to find out what went wrong. In the development log file I have: Started GET "/posts/3" for 127.0.0.1 at 2011-05-24 16:53:35 +0300 Processing by PostsController#show as HTML Parameters: {"id"=>"3"} [1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 3 LIMIT 1[0m ERROR: compiling _app_views_posts_show_html_erb___599541849308356030_2168837280__3307996878912411319 RAISED /Users/username/Projects/blog/app/views/posts/show.html.erb:20: syntax error, unexpected tASSOC, expecting ')' ... :collection => @post.comments );@output_buf... ... ^ Function body: def _app_views_posts_show_html_erb___599541849308356030_2168837280__3307996878912411319(local_assigns) _old_virtual_path, @_virtual_path = @_virtual_path, "posts/show";_old_output_buffer = @output_buffer;;@output_buffer = ActionView::OutputBuffer.new;@output_buffer.safe_concat('
');@output_buffer.append= ( notice );@output_buffer.safe_concat('
Name: ');@output_buffer.append= ( @post.name );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('
What's wrong? Please help. EDIT: views/posts/show.html.erb:<%= notice %>
Name: <%= @post.name %>
Title: <%= @post.title %>
Content: <%= @post.content %>
Comments
<%= render :partial => "comments/comment", :collection => @post.comments %>Add a comment:
<%= render "comments/form" %>Types" to analyze Ruby on Rails logs in Splunk See more RELATED PROJECTS Integrate Passmark stats into Spiceworks Import external CPU performance data natively into Spiceworks to directly compare CPU performance within the Spiceworks inventory. Automated Database Upload System Automated system with GUI to process and upload SQL databases. Tech Writing Co-wrriten book for those new to http://stackoverflow.com/questions/6123665/500-internal-server-error HTML5 and wanting to get up to speed quickly for SitePoint and Learnable, available on Amazon in UK, US, Australia, Canada and the Republic of Ireland TECHNOLOGY IN THIS DISCUSSION Ruby MySQL PostgreSQL Join the Community! Creating your account only takes a few https://community.spiceworks.com/topic/530134-cannot-render-html-erb-completed-500-internal-server-error minutes. Join Now I have begun converting a Postgres database to mysql and suddenly cannot render my other webpages. I am trying to get http://reinhartsample.com/coffee and other pages to render. They were working before I changed my gem file and ran bundle install to convert to mysql.The index page comes up just fine but everything else gets a message We're sorry, but something went wrong. When I look at the log file I can see the following errors. TextActiveRecord::StatementInvalid (Mysql2::Error: No database selected: SHOW FULL FIELDS FROM `tea_orders`): app/controllers/home_controller.rb:17:in `new' app/controllers/home_controller.rb:17:in `tea' Started GET "/crunchytoppings" for xx.xx.xx.xx at 2014-06-30 11:42:00 -0500 Processing by HomeController#crunchytoppings as HTML Completed 500 Internal Server Error in 2ms ActiveRecord::StatementInvalid (Mysql2::Error: No database selected: SHOW FULL FIELDS FROM `ct_orders`): app/controllers/home_controller.rb:10:in `new' app/controllers/home_controller.rb:10:in `crunchytoppings' Started GET "/coffee" for xx.xx.xx.xx at 2014-06-30 11:42:02 -0500 Processing by HomeControl
van GoogleInloggenVerborgen veldenZoeken naar groepen of berichten
over 4 years ago Hi guys, I've freshly installed Redmine 2.0.3 with mysql on Thin and nginx $ ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux] $ gem --version
1.8.24 $ thin --version
thin 1.3.1 codename Triple Espresso $ bundle
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.3.6)
Using activesupport (3.2.6)
Using builder (3.0.0)
Using activemodel (3.2.6)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.6)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.6)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.6)
Using activeresource (3.2.6)
Using coderay (1.0.7)
Using fastercsv (1.5.5)
Using json (1.7.3)
Using mysql (2.8.1)
Using net-ldap (0.3.1)
Using pg (0.14.0)
Using bundler (1.1.4)
Using rack-ssl (1.3.2)
Using rdoc (3.12)
Using thor (0.15.3)
Using railties (3.2.6)
Using rails (3.2.6)
Using prototype-rails (3.2.1)
Using ruby-openid (2.1.8)
Using rack-openid (1.3.1)
Using rmagick (2.13.1)
Using sqlite3 (1.3.6) And it completely randomly throws 500. Few examples Started PUT "/issues/4" for 127.0.0.1 at Pá čen 29 16:38:47 +0200 2012
Processing by IssuesController#update as HTML
Parameters: {"last_journal_id"=>"", "id"=>"4", "notes"=>"", "authenticity_token"=>"...", "commit"=>"Potvrdit", "attachments"=>{"1"=>{"descrip
tion"=>""}}, "issue"=>{"tracker_id"=>"2", "description"=>"", "due_date"=>"", "parent_issue_id"=>"", "subject"=>"...", "status_id"=>"1", "lock_version"=>"0", "
project_id"=>"5", "start_date"=>"2012-06-18", "done_ratio"=>"0", "is_private"=>"0", "assigned_to_id"=>"", "category_id"=>"", "priority_id"