Rails

Welcome to our official Rails feedback forum. Do you have an idea? Do you recognize a good idea when you see one? We want to hear from you! (check the other available forums)

In the Rails 3 timeframe, I would like Rails to...

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  1. JavaScript TDD in Rails 3.1+

    Are there plans to add JavaScript TDD alongside the asset pipelining support in Rails 3.1?

    It seems like a natural progression.

    * A way to organize .js/.coffee files and their tests/specs.
    * A default JavaScript TDD framework that can be swapped out like Test::Unit and RSpec.
    * Generators for adding JS files with their tests.
    * Rake tasks to run the JS tests (presumably via node.js, since it is required for CoffeeScript as well)

    Are their existing gems that could be pulled in to support this?

    15 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      1 comment  ·  Flag idea as inappropriate…  ·  Admin →
    • Namespace generated helpers, models, and controllers

      Rails3 has a great idea, using the app name as the namespace for the Application object. However, there's still the issue of the controllers, models, and helpers existing in the global namespace. Conflicts ensue when combining apps to run embedded within each other.

      Mounting any app into another app is a great vision for the future. Why not get started now? All script/generate should place the generated ruby files in your AppName module

      15 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        0 comments  ·  Flag idea as inappropriate…  ·  Admin →
      • option for skip the remaining validations once the attribute has error

        I would like activerecord to have option to be able to skip the remaining validations once the attribute already has error, because sometimes we only need the first error of the field to be shown instead of every single one, and having too many errors shown up can be confusing and wasting time on validation.

        Here's what I would do to the validates_each method to make that happen:

        def validates_each(*attrs)
        options = attrs.extract_options!.symbolize_keys
        attrs = attrs.flatten

        # Declare the validation.
        send(validation_method(options[:on] || :save), options) do |record|
        attrs.each do |attr|
        #logger.debug('record errors'+record.errors.inspect)
        next if options[:only_first_error] && record.errors.on(attr)
        value = record.send(attr)
        next…

        1 vote
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          0 comments  ·  Flag idea as inappropriate…  ·  Admin →
        • Support for template inheritance

          I would love to see template inheritance in rails. It's implemented in some newer frameworks like rango or pancake.

          It's a must have! :)

          (see pancake: http://github.com/hassox/pancake or rango: http://wiki.github.com/botanicus/rango for examples)

          6 votes
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            0 comments  ·  Flag idea as inappropriate…  ·  Admin →
          • Multiple database migrations

            Wouldn't it be cool if we could have multiple tables stored in different databases and keep them all in sync through migrations?

            db/migrate/local_database/*.*
            db/migrate/remote_database/*.*

            5 votes
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              1 comment  ·  Flag idea as inappropriate…  ·  Admin →
            • correct simple form validation security issue in flash[:notice] error

              Issue: Submission of an empty form that has several validation requirements will result in a list of reasons why you're form didn't validate. I've noticed that on most Rails websites - I can simply go to the form, hit submit without entering anything and then see basically all the validation requirements. If for example I was running an e-commerce website that had a crappy Rails developer that perhaps didn't add a "price_must_be_at_least_a_cent" method to my Products model - a potentially malicious user could reverse-engineer (simply see in the long list of errors that theres NO price validations) and use that…

              6 votes
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                0 comments  ·  Flag idea as inappropriate…  ·  Admin →
              • Multiple redirect_to statements within a single action. (eg. within an if/else statement)

                I would like to see Rails support multiple "redirect_to" statements within a single action.

                For example, I would like to be able to redirect to a user to a different action, based on a conditional if/else statement.

                5 votes
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                • Replace script/* by rails-gen

                  Rails 3 should follow merb way for generating and avoid script/* and related rake task rails:update:scripts. This technique will make our generators always up-to-date. We can generate rails app with "rails app_name" so why not use it for other tasks?

                  69 votes
                  Vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    I agree to the terms of service
                    Signed in as (Sign out)
                    You have left! (?) (thinking…)
                    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                  • is_paranoid

                    In light of the death of is_paranoid, perhaps Rails 3.0 could support similar behavior internally or make it easier to implement.
                    http://blog.semanticart.com/killing_is_paranoid/

                    It's better to offer Undo instead of ask confirmation. Marking data as deleted is one way to offer that option, and should be trivial to implement. Thoughts on best ways to implement this?

                    1 vote
                    Vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      I agree to the terms of service
                      Signed in as (Sign out)
                      You have left! (?) (thinking…)
                      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                    • WAI-ARIA support

                      Support for the W3C WAI-ARIA spec could be added to Rails. WAI-ARIA defines a way to make Web apps more accessible to people with disabilities. It's especially aimed at making dynamic content (AJAX, JavaScript, etc) accessible without the need for the site to work when JavaScript is turned off.

                      http://www.w3.org/WAI/intro/aria

                      Rails could have support for ARIA in form_for and related tags inside the view. More information about implementing it is available in the following article on Opera's website:

                      http://dev.opera.com/articles/view/introduction-to-wai-aria/

                      18 votes
                      Vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        I agree to the terms of service
                        Signed in as (Sign out)
                        You have left! (?) (thinking…)
                        1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                      • RDF represenataions of resources

                        Lets steal a march on the python community and get some Rails apps producing RDF. A to_rdf method in respond_with

                        22 votes
                        Vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          I agree to the terms of service
                          Signed in as (Sign out)
                          You have left! (?) (thinking…)
                          1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                        • data encryption support

                          Data security should be a core feature of Ruby, it should have support for the various cryptography methods already in sure. Speed and efficiency should be paramount, so handling large amount of data does not have a negative impact on performance.

                          3 votes
                          Vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            I agree to the terms of service
                            Signed in as (Sign out)
                            You have left! (?) (thinking…)
                            0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                          • Support Multi-Table Inheritance

                            The current Single-Table Inheritance model inherently does not scale well to large and complex class structures, and can prove troublesome to work with when the required structure and functionality of a child-class greatly extends that of a parent class.

                            Moving data for child-classes into a separate table for each class would allow for far more efficient (i.e. normalised) database structures. Each entry in a child table would also maintain an entry in all parent table(s), allowing us to keep the ease of use we currently experience, since retrieving all data for members of a class, or a specific sub-class, is…

                            25 votes
                            Vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              I agree to the terms of service
                              Signed in as (Sign out)
                              You have left! (?) (thinking…)
                              0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                            • store test fixtures in ram, FASTER BUILDS!

                              create a connection adapter for ActiveRecord that stores fixtures in ram, so tests run in a blink!

                              and things like assert_difference and ActiveRecord callbacks run sweetly!!

                              7 votes
                              Vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                I agree to the terms of service
                                Signed in as (Sign out)
                                You have left! (?) (thinking…)
                                2 comments  ·  Flag idea as inappropriate…  ·  Admin →
                              • Abstract Observers into something generic like Django Signals

                                Make observers be implemented as a general callback mechanism, where the object life-cycle callbacks are only built-in signals, but people can still define, send and handle signals anywhere else.

                                Django signals: http://docs.djangoproject.com/en/dev/topics/signals/

                                8 votes
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  I agree to the terms of service
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                • Default Authentication + Authorization scaffold/sample apps

                                  Instead of reinventing the "wheel of security" for every app, why not have one or more basic application setups or scaffolding options, which make Authentication and Authorization easy?

                                  Requirements for Authorization (e.g. roles and rights) may differ from app to app, but it should be possible to provide a number of commonly used schemes ranging from very simple to very complex.

                                  The benefit - apart from speeding up the creation of apps - would be more secure Rails applications. Also, a well proven and tested implementation allows the developer to focus more of his attention on creating business value.

                                  104 votes
                                  Vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    I agree to the terms of service
                                    Signed in as (Sign out)
                                    You have left! (?) (thinking…)
                                    2 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                  • transform tests-classes into test-modules

                                    Wouln't it be cool if you could just mixin a module with tests and use it to test another object?

                                    3 votes
                                    Vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      I agree to the terms of service
                                      Signed in as (Sign out)
                                      You have left! (?) (thinking…)
                                      2 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Api for creating admin interface easily (like django)

                                      I hate creating dozens of CRUDS for admin areas for some of applications. In many applications it can be done in the frontend, but there are situations when you just can't do that.

                                      876 votes
                                      Vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        I agree to the terms of service
                                        Signed in as (Sign out)
                                        You have left! (?) (thinking…)
                                        15 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                      • be able to have nested layouts

                                        Today we can have a general application layout or a by controller layout, that will wrap around our views.
                                        But, what if I wanted to apply the application layout (which defines the doctype, header and footer) and use a user layout with side bars and then use my view (which has actual dynamic content). There's no easy way around this, unless we use some helper method with capturing.

                                        15 votes
                                        Vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          I agree to the terms of service
                                          Signed in as (Sign out)
                                          You have left! (?) (thinking…)
                                          planned  ·  5 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Make the documention and creation of scaffolds eayser

                                          I love the scafflod system but i feel that it shouuld redesined so that way i can easly make and manage and deploy scaffolds across apps to speed up my development process since i reuse a lot of my code

                                          1 vote
                                          Vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            I agree to the terms of service
                                            Signed in as (Sign out)
                                            You have left! (?) (thinking…)
                                            0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1 3 4 5 6 7
                                          • Don't see your idea?

                                          Rails

                                          Feedback and Knowledge Base