Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8607325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:19:37+00:00 2026-06-12T03:19:37+00:00

EDIT Here’s the project on GitHub: https://github.com/lionelrudaz/myteam2 I’m making my first application in Ruby

  • 0

EDIT

Here’s the project on GitHub: https://github.com/lionelrudaz/myteam2


I’m making my first application in Ruby on Rails by using the template on Railsapp (Twitter Bootstrap, Devise and CanCan).

I’ve also made the necessary steps to publish my app to Heroku.

Everything went fine so far, first publication on Heroku was alright, until I restarted the server on my MacBook Pro.

Now I get always the default error page with message “We’re sorry, but something went wrong.”

In the terminal, I get:

=> Booting Thin
=> Rails 3.2.8 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
>> Thin web server (v1.5.0 codename Knife)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop


Started GET "/" for 127.0.0.1 at 2012-10-01 19:19:21 +0200
Processing by HomeController#index as HTML
     User Load (0.3ms)  SELECT "users".* FROM "users" 
     Club Load (0.2ms)  SELECT "clubs".* FROM "clubs" ORDER BY "clubs"."id" DESC LIMIT 1
Rendered home/index.html.erb within layouts/application (23.2ms)
Completed 500 Internal Server Error in 190ms

Since I don’t know how to disable the error page to get a real stack trace, I’ve started to remove lines of code by lines of code to find which line isn’t working. Actually, it looks like the f.label instructions aren’t working anymore. I know they did, I’ve used my app for a long time.

Here’s my home_controller.rb file

class HomeController < ApplicationController
  def index
    @users = User.all
    @club = Club.last
  end
end

index.html.erb

<h3>Home</h3>

<%= debug @club %>

<%= form_for @club do |f| %>

  <div class="control-group">
    <%= RUBY_VERSION %>
    <%= Rails.version %>
    <%= f.label :name, :name %>
    <%= f.text_field :name %>
  </div>

 <% end %>

 <% @users.each do |user| %>
    <p>User: <%=link_to user.name, user %></p>
 <% end %>

The error is fired when I change

 <%= f.label :name, :name %>

to

 <%= f.label :name %>

I updated my app on Heroku so you can check the debug: http://myteam2.herokuapp.com/

I don’t know what’s wrong, it’s so basic that I feel so dumb.

When I was investigating, I’ve remarked that the second argument of f.label must be a String. It’s impossible to use the t() method to change the text of the email from a i18n file.

I can’t go ahead with my application and feel really frustrated. My Google researches haven’t been successful.

Let me know if you need more information.

Cheers,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T03:19:38+00:00Added an answer on June 12, 2026 at 3:19 am

    Lionel, you should seen an error message when you are running your project locally with the development environment.

    I cloned your project and after a little setup I ran rails s to start the project with the default development environment. The home page loaded fine, but clicking “Login” to go to /users/sign_in showed the following error:

    Error:

    http://www.evernote.com/shard/s157/sh/078d0a12-73b1-4eb7-9430-55b916f19ef7/12c0cbb7b7254e5c02bb7ff0f0c4aa3f

    The error indicates that a problem exists within config/locales/users.en.yml, that a Hash was expected, but none was returned.

    Currently config/locales/users.en.yml is a blank file.

    Fix:

    You can either delete that file. Do this if you never plan on using it.

    OR

    add content so that parsing the file returns data in the form of a Hash. Simply add en: to the top of config/locales/users.en.yml. Do this if you plan on entering translation data in the future.

    Other:

    It seems like you are developing your application on Heroku. From my experience this will be difficult. It is much easier to develop locally adding features and fixing bugs. Then deploy to Heroku once your app is in a stable state. You can even set up a separate staging server on Heroku so you can test your changes before deploying to your production server.

    Using the heroku gem you can run heroku logs --tail to monitor output from your application. If you had not been using that it may have helped solve your problem.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT: See this in action here: http://jsbin.com/emobi/5 -- and that's using mouseenter/mouseleave. I have
Edit: You can get the full source here: http://pastebin.com/m26693 Edit again: I added some
[EDIT: Here's a link to a mockup of what I'm trying to create] http://i53.tinypic.com/w9v2np.jpg
http://jsbin.com/uxepap/3/edit Here is div with links inside. I'm trying to replace comma inside last
EDIT: Here's the video showing the problem: www.youtube.com/watch?v=5ZZsuMH5T9k I'm really stuck here :/ --
EDIT: Here's a link to show you my sample code: http://www.singingeels.com/jqtest/ I have a
EDIT: Here's the "better" one. First Page <!DOCTYPE HTML> <html> <head> <link rel="stylesheet" type="text/css"
Edit - here are some resources in response to comments: costate: http://bamafolks.com/randy/students/embedded/dynamicC_mtask.html writeUserBlockArray: http://ftp1.digi.com/support/documentation/html/DynCFunctionReference/12fun595.htm#1259708
Edit- here's the code <html> <head> <script type=text/javascript> var prodURL = https://blah; function postwith
http://jsbin.com/aboca3/95/edit Here is working example for separate numeral and alphabetical sort. It works well,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.