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 →
          • 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 →
              • 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 →
                • 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 →
                  • 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 →
                    • 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 →
                      • 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 →
                        • 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 →
                          • 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 →
                            • 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 →
                              • 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 →
                                • 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 →
                                  • 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 →
                                    • 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 →
                                      • 2 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 →
                                        • Less Instance vars - more API

                                          The extensive use of instance variables inside the rails core hinders any attempts to provide a better API and generates too much dependencies.
                                          Why not have more smaller methods and pass in values as arguments?

                                          For example, to render independent views - as in cells - you have to derive ActionView::Base to override those instance vars and thus get the behaviour you need.
                                          It would be great if you could just do this by calling a public method somewhere in ActionView::Base and pass in necessary arguments (like ViewPath, assigns, template_format, ...)

                                          Same applies to Layout finding and rendering.

                                          Another example…

                                          11 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 →
                                          ← Previous 1 3 4 5 6 7
                                          • Don't see your idea?

                                          Rails

                                          Feedback and Knowledge Base