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 7003273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:02:49+00:00 2026-05-27T21:02:49+00:00

I am eager to try out DataMapper for a new Rails project. I created

  • 0

I am eager to try out DataMapper for a new Rails project. I created my project using the following command:

rails new project_name -m http://datamapper.org/templates/rails.rb

I decided to test out my application by running:

rails server

When I go to the generic home page that is created, I can’t see any images. I get an error stating:

ActionController::RoutingError (No route matches [GET] "/assets/rails.png")

If I create any other scaffolds and visit those pages, I get similar errors about the stylesheets or javascript not found. I double checked to ensure that a regular Activerecord-rails application worked (which it did). I’m rather puzzled. Any help would be greatly appreciated. Thank you 🙂

  • 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-05-27T21:02:50+00:00Added an answer on May 27, 2026 at 9:02 pm

    For some reason, DataMapper’s Rails template completely replaces the standard Gemfile with their own, which doesn’t include any of the asset handling stuff (it also removes a handful of other things like jQuery support, TestUnit, ActionMailer…).

    You’ll want to add these back in to your Gemfile after setting up the new application:

    group :assets do
      gem 'sass-rails',   '~> 3.1.5'
      gem 'coffee-rails', '~> 3.1.1'
      gem 'uglifier', '>= 1.0.3'
    end
    
    gem 'jquery-rails'
    

    Per Frederick’s suggestion below, you’ll also want to add this into your config/application.rb file:

    require 'sprockets/railtie'
    

    I opened an Issue and submitted a pull request to fix this.

    Update: As of 1/5/2012, this is now fixed. The template behaves nearly identical to a standard Rails 3.1 app with the only change being ActiveRecord being replaced with DataMapper. Assets/jQuery support now works.

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

Sidebar

Related Questions

I've been eager to try out the Programmer Dvorak keyboard layout, so I downloaded
Does anyone know a way to determine if a Rails association has been eager
Is there a way to disable eager validation using the jquery.validate plugin? Either through
I have a problem trying the following with nHibernate: Eager loading. Use selects (here
I'm new on object persistence with Hibernate. I'm reading a book to try to
Hello I have the following code to retrieve data from my db using nhibernate
I'm having issues with GROUP BY and eager loading. I try to explain what
i'm trying to eager load some child entity, and when I try to add
I have the following Exception when i'm try to insert values in the database.
I'm eager to give these a go, but I've only got my precious home

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.