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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:30:58+00:00 2026-06-12T20:30:58+00:00

good progress so far. got all controllers and actions up and running in matter

  • 0

good progress so far.
got all controllers and actions up and running in matter of minutes.

However not sure how make sessions work.

trying:

class Cart
    session :memory

    # my actions
end

but it fails with an error that say to use sessions at app level.

how that? where is that app level?

  • 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-12T20:31:00+00:00Added an answer on June 12, 2026 at 8:31 pm

    I guess you are starting the app like this:

    Cart.run
    

    it is a good one unless you need to add some setup to your app.

    creating app is as easy as:

    app = EApp.new :automount
    app.run
    

    and if you have some setup for the app, use a block at initialization:

    app = EApp.new :automount do
        session :memory
    end
    app.run
    

    Please note the first argument – :automount – it instructs the app to search for controllers and mount them automatically.

    If you want to mount your controllers manually, omit first argument:

    app = EApp.new do
        session :memory
    end
    app.mount Cart
    app.run
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making good progress with my first Rails app with a lot of
I am working on my first iPhone app and making good progress. But there
m trying to break one large Excel spreadsheet into several. I've made good progress,
I'm trying to cross compile php for arm and have good progress but I'm
I'm starting with OpenId using the dotnetopenid library and, so far, so good, but
We use the DesignSurface and all that good IDesignerHost goodness in our own designer.
I'm trying to get a little ffmpeg converter-service up and running, made pretty good
A simple question that I'm not sure if it has a short answer! Description
Good morning, I have mysql queries where I would like to calculate percentage of
Good day. I need to teach Windows CryptoAPI to encrypt the message with private

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.