[Rails-core] New i18n release (0.8.0.beta1)

2016-11-20 Thread Ryan Bigg
Hello all, I've been helping Sven Fuchs maintain the i18n gem and I'm pleased to let you know that I'm prepping a new release of this gem (0.8.0). This new release will affect every Rails version since Rails 3.2, so I want to make sure this release is bullet-proof! Included in this release

Re: [Rails-core] It'd be great to be able to use semantically consistent custom configuration variables

2015-12-29 Thread Ryan Bigg
You can do this already with code like this: wepay_config = ActiveSupport::OrderedOptions.new wepay_config.use_stage = false Rails.application.config.wepay = wepay_config Accessed through Rails.application.config.wepay.use_stage This is how the Railties (like Active

Re: [Rails-core] Angular 2 and Rails 5, asset pipeline or no?

2015-12-24 Thread Ryan Bigg
Please ask this question on the rubyonrails-talk mailing list. This list is reserved for core discussions. > On 24 Dec 2015, at 06:55, Amrit Kahlon wrote: > > What is the best way to set up a project using angular 2 and rails 5? I was > using it with angular 1.5 and

Re: [Rails-core] About Directory location of strategy pattern in rails

2015-08-30 Thread Ryan Bigg
Hi, Please ask questions like this on the rubyonrails-talk mailing list. This list is reserfved for discussion about the core of the Rails framework. On Mon, Aug 31, 2015 at 2:00 PM, venu madhav chitta venu.chitta1...@gmail.com wrote: I am implementing strategy pattern in Rails where I

Re: [Rails-core] Re: Segmentation fault while running tests for latest Rails 4.2

2015-08-24 Thread Ryan Bigg
I think that Meghali was in the right here. This is most definitely a core framework development question. On Mon, Aug 24, 2015 at 4:08 PM, Rishav Rastogi rishav.rast...@gmail.com wrote: Hi Meghali, Please use the ruby-on-rails-talk google group or stackoverflow to post this question. This

Re: [Rails-core] Nokogiri adds a lot of weight to ActionView

2015-07-13 Thread Ryan Bigg
It’s not that they have to install an extra gem that’s the problem, I think. The problem is that Nokogiri is only used by a tiny, tiny subset of ActionView and during the course of the application that tiny subset might not be used at all. The installation of Nokogiri can cause issues for

Re: [Rails-core] Vrite a file size verification test

2015-07-13 Thread Ryan Bigg
Hi there, This list is reserved for talk about the core of the Rails framework itself. Please ask general Rails questions on the rubyonrails-talk mailing list, #rubyonrails channel on Freenode or on Stack Overflow under the “ruby-on-rails” tag. Thanks! On Mon, Jul 13, 2015 at 1:45

Re: [Rails-core] Add a hash pluck method?

2015-06-25 Thread Ryan Bigg
What is the benefit of this method? You can pluck(:firstname).map { |e| { firstname: e } } if you really wanted that. Why are you plucking and wanting it to be a hash? On 25 Jun 2015, at 19:59, Mike Campbell m...@huntspill.com wrote: The regular AR pluck method returns the values only,

Re: [Rails-core] proposal: deprecate save() in favor of save!()

2015-06-22 Thread Ryan Bigg
Changing this method's name reeks of bikeshedding. Any one with more than a day's worth of Rails experience knows the difference between these two methods and how to use them. In my experience, the return value for save is almost always checked. If we deprecate save and then have only save!,

Re: [Rails-core] write code for csv

2015-05-14 Thread Ryan Bigg
This list is reserved for discussion around the core of the Rails framework. For general Rails questions, please post to rubyonrails-talk, or Stack Overflow. Thank you. On 14 May 2015, at 17:22, ravishankar mishra ravishankar.mishr...@gmail.com wrote: Hi how we can generate 3 or 4

Re: [Rails-core] ActiveRecord::ProtectedModel

2015-04-26 Thread Ryan Bigg
In what instance would people be calling destroy on your model without realising that it's supposed to be protected? Who is this protecting the model from? On 27 Apr 2015, at 07:08, Yannis Kolovos yannis.kolo...@gmail.com wrote: I would like to protect my model in production of of

Re: [Rails-core] find_by inconsistent return message

2015-02-08 Thread Ryan Bigg
I think that sounds reasonable. Please submit a PR. On 9 Feb 2015, at 03:07, Иван Бишевац ivan.bise...@gmail.com wrote: User.find(1) for no record with gives: def test_error_message begin User.find(1) rescue ActiveRecord::RecordNotFound = e message = e.message end

Re: [Rails-core] .html_safe is ambiguous and should be renamed

2015-02-04 Thread Ryan Bigg
This is a great example of bikeshedding. I am not sure that was the intention however. The method name, for me, means this string is safe to display as-is in HTML. Teaching people that this method does this is a simple matter of educating those people. Changing the method name to suit those who

Re: [Rails-core] Redesign the Rubyonrails.org

2014-12-22 Thread Ryan Bigg
Please elaborate. Where do you think the site is lacking? How can we improve it? On 20 Dec 2014, at 18:50, Anandu B Ajith reach2ana...@gmail.com wrote: The site is having a very old design and not usable .. shouldn't we switch to a better design in 2015?? -- You received this message

Re: [Rails-core] Changing welcome#index page in the new Rails applications

2014-11-26 Thread Ryan Bigg
Looks good to me. I would hide the box on the right by default. Please submit a PR for it :) On Thu, Nov 27, 2014 at 2:03 PM, Islam Wazery al.waz...@gmail.com wrote: I am proposing to change the style of the index page

Re: [Rails-core] Should find_by_attr(nil) make no queries if db has NOT NULL constraint?

2014-11-09 Thread Ryan Bigg
Can’t this be mitigated by using the bang-variant? i.e. `find_by_id!` ? On Mon, Nov 10, 2014 at 8:03 AM, Eugene Gilburg eugene.gilb...@gmail.com wrote: Current behavior: User.find_by_id(nil) User Load (1.1ms) SELECT users.* FROM users WHERE users.id IS NULL LIMIT 1 User.find_by_id()

Re: [Rails-core] assign_attributes method not found

2014-09-02 Thread Ryan Bigg
Hi skt, First of all: I would highly encourage you to upgrade immediately to at least 3.0.20. Second: What method are you calling exactly to get that error? On Wed, Sep 3, 2014 at 2:35 PM, skt stibre...@gmail.com wrote: Hello, I am on an old version of Rails (3.0.5) and can't upgrade

Re: [Rails-core] Replace Sprockets with Half Pipe

2014-06-09 Thread Ryan Bigg
Why would the community do that? What are the benefits? Why is Sprockets bad? Why would we replace it with something that is not up to its prime? Wouldn't we have to rewrite a whole bunch of Rails code and documentation? So many questions. I'm pretty hard -1 on this. On Mon, Jun 2, 2014

Re: [Rails-core] Simplifying `rails new`

2014-06-09 Thread Ryan Bigg
Replies inline. On 29 May 2014 14:35, Michael Kaiser-Nyman michael...@gmail.com wrote: Hello! I teach quite a few people Rails through my class, Epicodus. One thing I've noticed is that the sheer number of files and folders `rails new` generates is pretty intimidating for newcomers to Rails.

Re: [Rails-core] Rails 4.1

2014-02-25 Thread Ryan Bigg
Go ahead and use Rails 4.1 now. gem install rails --pre If you find any bugs, please file them as issues :) On 25 February 2014 at 3:09:37 pm, Sergio Campamá (sergiocamp...@gmail.com) wrote: Hi, Is there a release date for 4.1? I'm starting a new project for the company I work for, and I

Re: [Rails-core] Let scaffold controller generators generate namespaced controllers for non-namespaced models

2014-01-19 Thread Ryan Bigg
IMO the scaffold controller is not designed to be used for building all parts of your application. It's soul purpose is for you to put up a quick and dirty controller. Along similar lines: I strongly doubt your admin controllers are going to need to respond to json. I would strongly

Re: [Rails-core] select_year and date_select tag?

2013-08-03 Thread Ryan Bigg
Please ask questions like this on the rubyonrails-talk. This list is reserved for discussion about Rails internals. You could also try Stack Overflow. On Sat, Aug 3, 2013 at 6:50 PM, Kanna vtrka...@gmail.com wrote: Hi I need to use select_year and date_select_year tag, but i dont know how

Re: [Rails-core] Re: Extending Rails plugin new for nested engine support

2013-05-23 Thread Ryan Bigg
I personally think that this should be the responsibility of the engines, and nothing to do with Rails. Both Refinery and Spree (as examples that spring to mind) have different opinions on how to do this engines-that-extend-a-core-engine feature. I'm sure other things do too. I really don't think

Re: [Rails-core] ActiveRecord and sql tuple support

2013-05-21 Thread Ryan Bigg
I think this syntax wouldn't be supported in SQLite based on this SO answer:  http://stackoverflow.com/questions/1474964/using-tuples-in-sql-in-clause Maybe there is a better way to write this query? On Tue, May 21, 2013 at 12:13 PM, Rafael Almeida almeida...@gmail.com wrote: I would very

Re: [Rails-core] An error occurred while installing jk-ferret (0.11.8.3), and Bundler cannot continue.

2013-04-16 Thread Ryan Bigg
Hello, This list is reserved for discussion regarding the core of the Rails framework itself. Your issue is due to the jk-ferret gem failing, which is outside the concern of the Rails framework. Please contact the owner of that gem and ask them why it is failing. Thank you. M On Wed, Apr

Re: [Rails-core] Re: Home page route instead of root?

2013-03-11 Thread Ryan Bigg
http://transitionculture.org/wp-content/uploads/bikeshed2.jpg On 11 March 2013 07:23, Apoorv Parijat apoorvpari...@gmail.com wrote: For a domain, say example.org, you would call example.org/ as the root domain. The root domain points to the home page of the website. The idea of root should

Re: [Rails-core] Rails auth without any gem

2013-02-20 Thread Ryan Bigg
Hello, This list is reserved for discussion regarding core Rails, not application discussion. Please take your question to the rubyonrails-talk mailing list. Thanks! On 21/02/2013, at 4:17, Aydarnv nostsa...@gmail.com wrote: I did my own auth like on my old php site, I use sessions for

Re: [Rails-core] Weird (AS::Dependencies?) bug

2013-02-08 Thread Ryan Bigg
I agree with José. Is there a tl;dr for this thread? On 09/02/2013, at 6:35, José Valim jose.va...@gmail.com wrote: I don't know what the fuss is about and what needs to be documented. Most Ruby gems (and even libs inside Ruby) require you to load the *top-level* file in order to use it

Re: [Rails-core] Problem with Bootstrap-SASS

2013-01-22 Thread Ryan Bigg
Hi Per, This is a question better suited for the rubyonrails-talk mailing list. This list is reserved for discussions about the core of Rails, whereas rubyonrails-talk is for application support QA. Thank you! On 23/01/2013, at 16:07, xscr...@gmail.com wrote: I've installed

Re: [Rails-core] Arel for any AR action?

2013-01-12 Thread Ryan Bigg
What would the usecase for this be? On 13/01/2013, at 10:46, Steve Jorgensen ste...@stevej.name wrote: There are times when it would be very useful to be able to get the Arel for any given ActiveRecord action such as a creation or update without actually carrying out the action. I'm

Re: [Rails-core] Re: [ANN] Rails 3.2.10, 3.1.9, and 3.0.18 have been released!

2013-01-02 Thread Ryan Bigg
Thank you, Aaron, for your work on Rails! 3 3 3 On 03/01/2013, at 8:35, Aaron Patterson tenderl...@ruby-lang.org wrote: On Wed, Jan 02, 2013 at 01:28:36PM -0800, Aaron Patterson wrote: Rails versions 3.2.10, 3.1.9, and 3.0.18 have been released. These releases contain an important

Re: [Rails-core] Re: Re-imagined README.md for rails applications

2013-01-01 Thread Ryan Bigg
I think that this is something that would differ incredibly from app to app. For instance, I would not install Ruby using apt-get myself. While I like the idea of having it be a Getting Started doc for an app, I don't think that Rails could come with a cohesive default that would work for

Re: [Rails-core] The Parley Letter and REST

2012-12-29 Thread Ryan Bigg
and Steve, Ryan Bigg already worked on the Getting Started guide sometime ago and made it a lot simpler. One of the changes was removing the early references to REST - https://github.com/rails/rails/commit/2f06c94e38a116fdfa43d7b7117e6bf911a0bff5 Please check the edge guides to see

Re: [Rails-core] Re: Suggestion: render filters

2012-10-17 Thread Ryan Bigg
This explanation seems almost schizophrenic. What are you trying to say? Could you slow down and explain it in more elaborate terms please? On 18/10/2012, at 6:22, Alexander Kurakin kuraga...@mail.ru wrote: I think that links' authors know better than me all of causes. But I use render

Re: [Rails-core] Suggestion: to extract AC filter methods

2012-10-17 Thread Ryan Bigg
You can already use ActiveSupport::Callbacks for this. I think the documentation for this class is thorough and should give you a good understand of how it works. On 18 October 2012 06:21, Alexander Kurakin kuraga...@mail.ru wrote: Suggestion: to extract

Re: [Rails-core] When will Active Record be really Rails-independent? Concern about migrations

2012-10-15 Thread Ryan Bigg
I think the answer here that Rafael gave is spot-on. The migration tasks that come with Rails are designed with one database in mind. If you're operating with multiple databases, then you should create your own migration tasks that migrate your databases for you. On 16 October 2012 07:27, Jesse

Re: [Rails-core] Customizable parameter name in routing.

2012-10-08 Thread Ryan Bigg
-1 on this also for reasons Piotr explained. On 09/10/2012, at 8:13, Nickolas sir.nicko...@gmail.com wrote: It does only half of the job. It changes the content of the parameter passed, but not it's name. The idea is to be able to change the name. On Tuesday, October 9, 2012 12:03:54 AM

Re: [Rails-core] Approximate release timeline for Rails 4?

2012-10-02 Thread Ryan Bigg
Any Rails release timeline announcements are generally wrong, anyway. On Monday, 1 October 2012 at 9:49 AM, Jeremy Walker wrote: On 1 October 2012 00:43, Steve Klabnik st...@steveklabnik.com (mailto:st...@steveklabnik.com) wrote: Soonish. There are some things that are blocking the

Re: [Rails-core] Versioning of Views; Our Approach

2012-09-19 Thread Ryan Bigg
, roles whatever my gem wants to provide) I am under the impression that these parts are not open to extension at present. Cheers Sent from my iPhone On 16 Sep 2012, at 21:21, Ryan Bigg radarl...@gmail.com (javascript:) wrote: [This email will arrive approx 15 hours

Re: [Rails-core] Versioning of Views; Our Approach

2012-09-16 Thread Ryan Bigg
[This email will arrive approx 15 hours after I've written it. Sorry if there's been talk on this post by that stage that I am ignoring] I'm not sure I can agree with such a feature being a part of Rails just yet. There is currently many different approaches to designing APIs with Rails, going

Re: [Rails-core] [Proposal] Team issuebusters

2012-09-11 Thread Ryan Bigg
To see how much work Carlos (and team) did during Railsconf, look at this handy graph I drew up about a month ago: https://skitch.com/radarlistener/e15qy/rails-issues That big dip at the end of the graph is thanks to the volunteers who've been working super hard on keeping that ticket count

Re: [Rails-core] Proposal for def_method_missing in ActiveSupport

2012-08-09 Thread Ryan Bigg
-1 I don't think this feature would be useful to the majority of Rails developers out there, sorry. You could always release it as a separate gem and get people to use it that way. -- Ryan Bigg On Friday, 10 August 2012 at 0:59, Stephen Touset wrote: In several places in Rails (e.g

Re: [Rails-core] Could we add a new list for engines developers?

2012-07-22 Thread Ryan Bigg
kinda sucked before 3.1. Now a lot more people are using them. +1 for the list. On Jul 21, 2012, at 2:29 AM, Andrew Kaspick wrote: Here's a past one... http://www.mail-archive.com/engine-users@lists.rails-engines.org/ dead! On Fri, Jul 20, 2012 at 8:28 PM, Ryan Bigg

Re: [Rails-core] Could we add a new list for engines developers?

2012-07-20 Thread Ryan Bigg
rails-talk is a ghetto. A new engines list would be best. On Saturday, 21 July 2012 at 11:27 AM, Andrew Kaspick wrote: Engine lists have been created in the past, but they're not very active or are dead. -1 to a new engine list and +1 to just asking the questions in rails-talk first

Re: [Rails-core] Switching from development to production in rails 3.2.6

2012-07-19 Thread Ryan Bigg
This is a general Rails question and not related to the core development of the framework. Please refrain from asking such questions on this list. Instead, ask them on rubyonrails-talk or StackOverflow. Thanks! On Friday, 20 July 2012 at 2:49 AM, Anu wrote: I have rails app which uses

Re: [Rails-core] Extending controllers and models of Rails 3.2+ Engines

2012-07-12 Thread Ryan Bigg
We're currently discussing the best way to do this on Forem's issue #260 (https://github.com/radar/forem/pull/260). Kunal there wants to add methods to or modify the Forem::Post class, and so we're going to go with the app/decorators directory for that. On Friday, 13 July 2012 at 5:49 AM,

Re: [Rails-core] URL ID

2012-07-09 Thread Ryan Bigg
Very limited use-case. Can't see the point of it. -1 On Monday, 9 July 2012 at 3:58 PM, angelo capilleri wrote: Many users try to overwrite the to_param method of AR to add more expressivness and value of Seo to the url using something like the following: def to_param id.to_s + title.

Re: [Rails-core] attr_accessible on some properties + attr_protected on others makes class 'open-by-default'

2012-07-09 Thread Ryan Bigg
For the record: I don't mention attr_protected at all in Rails 3 in Action either. +1 to removing attr_protected. On Tuesday, 10 July 2012 at 11:57 AM, Peter Brown wrote: Just a guy with an opinion weighing in... I would love to see attr_protected removed. The official Rails Guide on

Re: [Rails-core] Extract fixtures to a separate gem for Rails 4

2012-07-05 Thread Ryan Bigg
I agree with Steve. Would love to see a reasoned discussion on what you'd replace FactoryGirl with. p.s. My test setup is better than your test setup. -- Ryan Bigg On Friday, 6 July 2012 at 6:54, Steve Klabnik wrote: Factories and factory_girl are one of the worst things to ever happen

Re: [Rails-core] Re: Extract fixtures to a separate gem for Rails 4

2012-07-05 Thread Ryan Bigg
No, they should not. They are used rather extensively in the Active Record tests. On Friday, 6 July 2012 at 7:56 AM, Olek Janiszewski wrote: Thanks everyone for sharing your feelings about FactoryGirl, but that's not what I care about :). I consider this off-topic, please start a separate

Re: [Rails-core] Active Record method

2012-07-02 Thread Ryan Bigg
Hi Yusuke, This looks like a general Rails question. Please ask this question on the rubyonrails-talk mailing list. This list is reserved for core Rails discussion. Thanks! On Tuesday, 3 July 2012 at 6:42 AM, Yusuke Enomoto wrote: Hello.I have a question. I am making chat application to

Re: [Rails-core] ActionView::Template::Error (undefined method `strftime' for nil:NilClass):

2012-06-25 Thread Ryan Bigg
Please post this to rubyonrails-talk. This list is reserved for discussion about core development of Ruby on Rails. For general issues, post them to rubyonrails-talk. Thanks. On Tuesday, 26 June 2012 at 6:00 AM, yatta20 wrote: Hello, I'm a newbie. I need help resolving this issue. I

Re: [Rails-core] How to access an engine's method from main application?

2012-06-22 Thread Ryan Bigg
rubyonrails-talk is that list. On Saturday, 23 June 2012 at 6:58 AM, A L wrote: Thanks Richard. Do you happen to know of any qa forum specific for rails users? Thanks for the pointer! -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Core

Re: [Rails-core] form_for renders content block twice.

2012-06-06 Thread Ryan Bigg
This seems like a discussion better suited on rubyonrails-talk. I don't see how it pertains to the core of the framework. On Wednesday, 6 June 2012 at 9:44 PM, Jarl Friis wrote: Hi. I amn just upgrading a project from 2.3.12 to 3.0.11. I have come pretty long, my unit tests succeeds,

Re: [Rails-core] Nested Resource Route Helpers

2012-06-04 Thread Ryan Bigg
Hi Michael, This is the Ruby on Rails Core list, used for discussions about the Rails framework itself. For discussion about apps built using Rails, go to the rubyonrails-talk mailing list. Thanks! -- Ryan Bigg On Tuesday, 5 June 2012 at 3:10, Michael Boutros wrote: Hello all

Re: [Rails-core] Nested Resource Route Helpers

2012-06-04 Thread Ryan Bigg
Oh, reading this again it seems I was wrong. How would it guess the associations? -- Ryan Bigg On Tuesday, 5 June 2012 at 3:10, Michael Boutros wrote: Hello all, I'm working on a Rails app and I have resources nested three deep - let's call them user, project, and issues

Re: [Rails-core] Why does it route to show when excepting new?

2012-05-30 Thread Ryan Bigg
for that and it will still work. Please be more careful about what lists you post to in the future. -- Ryan Bigg On Wednesday, 30 May 2012 at 18:30, Panayotis Matsinopoulos wrote: HI, I have the following in my routes: resources :photos, :except = [:new, :edit] When I get /photos

Re: [Rails-core] Engine's Application Controller

2012-05-23 Thread Ryan Bigg
Indeed, the application's app/controllers/application_controller.rb will take precedence over a similarly named file in the engine. The same goes for anything else in the app directory, too. This is why you namespace your engine: to avoid collisions such as these. On Thursday, 24 May 2012

Re: [Rails-core] Mountable Engines and ApplicationControllers

2012-05-08 Thread Ryan Bigg
I've been developing engines (Forem: https://github.com/radar/forem and Spree: https://github.com/spree/spree) for a while, and I've always chosen to make the engine's ApplicationController inherit from the application's ApplicationController for the reasons you point out: you get access to all

Re: [Rails-core] Is require_dependency supposed to be a public API?

2012-04-07 Thread Ryan Bigg
require_dependency is designed to be used for the purposes you describe. A lot of things aren't documented in the Rails API that are public. Doesn't mean that you shouldn't use them. On Saturday, 7 April 2012 at 9:28 AM, Rodrigo Rosenfeld Rosas wrote: If so, shouldn't it be documented in

Re: [Rails-core] Why locales are not in assets?

2012-04-05 Thread Ryan Bigg
them assets, but maybe locales can be at least in app/ directory? On Wednesday, April 4, 2012 11:40:51 PM UTC+2, Ryan Bigg wrote: You're right that they're not downloadable. They're still used in the process of generating assets that are downloadable. The ones

Re: [Rails-core] Why locales are not in assets?

2012-04-04 Thread Ryan Bigg
You're right that they're not downloadable. They're still used in the process of generating assets that are downloadable. The ones that are downloadable live in public/assets anyway. On Wednesday, 4 April 2012 at 4:34 PM, Alexey wrote: On Wednesday, April 4, 2012 11:25:26 PM UTC+2, Josh

Re: [Rails-core] Wip Guides

2012-03-22 Thread Ryan Bigg
that too. -- Ryan Bigg On Thursday, 22 March 2012 at 8:09, Adam Hawkins wrote: Is there anything we can do about the Work in Progress Guides? Some of them have been WIP for a while. What are they missing? Is there a list somewhere? Let me know if there is anything I can do. -- You

Re: [Rails-core] Rails Engine

2012-03-15 Thread Ryan Bigg
Please ask questions like this on the rubyonrails-talk mailing list. Core is reserved for discussion about the actual framework itself, rather than applications/engines built on top of it. There's also an engines guide you could read: http://guides.rubyonrails.org/engines.html On Thursday,

Re: [Rails-core] Re: Scaffold Generator Woes

2012-03-10 Thread Ryan Bigg
Check out the generators guide. It contains info about how to modify the default generators. On 10/03/2012, at 5:20, pferdefleisch pferdeflei...@gmail.com wrote: Quick question. Many posters have referred to creating their own custom scaffold generators instead of using the defaults. What

Re: [Rails-core] Scaffold Generator Woes

2012-03-09 Thread Ryan Bigg
On Friday, 9 March 2012 at 10:16 AM, Colin Law wrote: On 9 March 2012 18:06, Steve Klabnik st...@steveklabnik.com (mailto:st...@steveklabnik.com) wrote: Scaffolds are a boon to someone trying to work it out for themselves and they provide the instant gratification Wow factor that lets

Re: [Rails-core] Re: Scaffold Generator Woes

2012-03-09 Thread Ryan Bigg
Replies inline. You may want to ensure you have supplies before reading this. It's a bit long. On Friday, 9 March 2012 at 6:45 AM, Trek Glowacki wrote: So, just to recap the flow of this conversation for myself: a) We, as developers *of* Rails (or at least those who lurk here), realize

[Rails-core] Scaffold Generator Woes

2012-03-08 Thread Ryan Bigg
Hello friends, It's been fun having the scaffold generator exist as a part of Rails since The Beginning Of Time, but I think its time is now up. It has been abused time and time again, and most often leads to confusion amongst people who are new to Rails. This confusion happens when a user

Re: [Rails-core] Scaffold Generator Woes

2012-03-08 Thread Ryan Bigg
there was the removal of the scaffold method from the controllers. A major version then was the perfect time for that, and over time tutorials adjusted. If it was removed here, the same thing would occur. On Thu, Mar 8, 2012 at 1:30 PM, Ryan Bigg radarliste...@gmail.com

Re: [Rails-core] Scaffold Generator Woes

2012-03-08 Thread Ryan Bigg
On Thursday, 8 March 2012 at 11:30 AM, Elomar Souza wrote: Can anyone please elaborate on the disadvantages of using the scaffold? :) This helpful Stack Overflow question should display why teaching noobs scaffold first off is a bad thing: http://stackoverflow.com/revisions/9622251/1.

Re: [Rails-core] Generating new project creates a few files with bad syntax Rails 3.2.1

2012-03-02 Thread Ryan Bigg
On Friday, 2 March 2012 at 12:15 PM, Mark Peterson wrote: You've got to be kidding? Why do these people waste their time with such pointless syntactical changes This is what would be gauged as rage here. They're not *pointless* syntax changes. They're adapting to the shorter syntax for

Re: [Rails-core] Generating new project creates a few files with bad syntax Rails 3.2.1

2012-03-02 Thread Ryan Bigg
On Friday, 2 March 2012 at 4:06 PM, Andrés Mejía wrote: I don't mean to offend, but you are one of the most annoying people to ever write to this list. Fire, meet gasoline. i.e. This is not the way to deal with people like that. Insults will only generate more insults. Let's not do that,

Re: [Rails-core] Is there any way expire confirmation-mail with devise?

2011-12-31 Thread Ryan Bigg
Hi, This list is reserved for the discussion of Rails core components. For questions about external gems such as devise, please ask on Rubyonrails-talk, the devise mailing list itself or Stackoverflow. Thanks! On 31/12/2011, at 15:45, pocket poketo7...@gmail.com wrote: Hello. I'm using

Re: [Rails-core] automatic return from render and redirect

2011-12-19 Thread Ryan Bigg
Nope, I think the current way of doing things is just fine. On 20/12/2011, at 9:51, Rodrigo Rosenfeld Rosas rr.ro...@gmail.com wrote: From a web application point of view, you're usually done after you deliver some content to the client, which in Rails means a render or redirect call

Re: [Rails-core] SourceAnnotationExtractor versus Rails 3.1

2011-12-05 Thread Ryan Bigg
You should log a bug on GitHub, Rails is not using Lighthouse anymore. Personally, I've not used `rake notes`, but others may find that functionality useful. On Tuesday, 6 December 2011 at 7:31 AM, Dee wrote: It doesn't look like SourceAnnotationExtractor was updated to include the asset

Re: [Rails-core] Re: Mountable Engine/App: gems from .gemspec not available in dummy app when started with rails console/server

2011-10-06 Thread Ryan Bigg
normally the AJAX calls are working just fine). On Aug 25, 7:49 pm, Ryan Bigg radarliste...@gmail.com (http://gmail.com) wrote: A short guess: Something is not calling Bundler.require(Rails.env, :default) as what would normally happen in Rails, like in the default config

Re: [Rails-core] [ROR]use rails to operate SQLite3 error.

2011-09-05 Thread Ryan Bigg
Please post these types of questions to the rubyonrails-talk mailing list. rubyonrails-core is reserved for discussion about the internals of the framework. On Tuesday, 6 September 2011 at 11:01 AM, B.Tag wrote: I encountered the following problem with sqlite3: databases table:

Re: [Rails-core] Javascript is now a first-class code citizen - Really?!

2011-08-31 Thread Ryan Bigg
I think due to the large number of testing frameworks out there for JavaScript, we should leave this in the developer's hands and not make it a part of the Rails core. On 31/08/2011, at 23:06, Rodrigo Rosenfeld Rosas rr.ro...@gmail.com wrote: Hi guys, While reading the 3.1 release notes

Re: [Rails-core] Mountable Engine/App: gems from .gemspec not available in dummy app when started with rails console/server

2011-08-25 Thread Ryan Bigg
A short guess: Something is not calling Bundler.require(Rails.env, :default) as what would normally happen in Rails, like in the default config/application.rb. Does putting this line in your engine.rb make it work? On Friday, 26 August 2011 at 9:19 AM, Wolfram Arnold, RubyFocus wrote: I'm

Re: [Rails-core] mysql connections problem

2011-08-17 Thread Ryan Bigg
Agreed. This is not a rails-core issue. Please ask this on the rubyonrails-talk mailing list instead. On Wednesday, 17 August 2011 at 7:55 PM, Ben Langfeld wrote: The obvious omission from your post is the platform on which you deploy rails. This is where responsibility lies, and it

Re: [Rails-core] [ANN] Rails 2.3.14

2011-08-16 Thread Ryan Bigg
The changelog link is here: https://github.com/rails/rails/compare/v2.3.12...v2.3.14 (https://github.com/rails/rails/compare/v2.1.12...v2.1.14). Just got the minor number wrong, which is a minor problem. Thanks again for your fabulous work Aaron! On Wednesday, 17 August 2011 at 9:32 AM,

Re: [Rails-core] erlang - rails

2011-08-03 Thread Ryan Bigg
Please have this discussion on the rubyonrails-talk mailing list. This list is reserved for issues relating to the core functionality of Rails itself, such as bug reports, new feature discussions and so on. Thank you. On Wednesday, 3 August 2011 at 3:02 PM, Bruce Dou wrote: You can call

Re: [Rails-core] has many relationship

2011-07-13 Thread Ryan Bigg
Please ask this question on Rubyonrails-talk. It seems like you are defining your Post model in a file incorrectly named / located. On 13/07/2011, at 22:04, M Bougie mathi...@socialship.net wrote: Can you change something in this kind of relationship, because it works great in previous

Re: [Rails-core] case insensitive finders

2011-06-27 Thread Ryan Bigg
where(LOWER(email) = ?, email) isn't good enough? On Tuesday, 28 June 2011 at 6:07 AM, Tristan Hill wrote: It would be useful for issues such as http://www.redmine.org/issues/2473 (Login and mail should not be case sensitive) to support case insensitive finds via the dynamic finders. This is

Re: [Rails-core] Re: Sprockets 2.0.0.beta.11 breaks assets

2011-06-26 Thread Ryan Bigg
Nik: Specify this line in your Gemfile: gem 'sprockets', '2.0.0.beta10' Make sure there isn't one there for 2.0.0.beta11 or anything else mentioning sprockets. Then run bundle update sprockets. This will change it to the correct version. On Friday, 24 June 2011 at 11:13 AM, Nik wrote: I

Re: [Rails-core] Sprockets 2.0.0.beta.11 breaks assets

2011-06-21 Thread Ryan Bigg
Have you tried cloning this into a local dir and specifying that as a path like this: gem 'sprockets', :path = vendor/sprockets And then attempt to run a git bisect over that directory to figure out what, if anything, broke between beta10 and beta11? I mean, you *do* have good and bad refs to

Re: [Rails-core] Sprockets 2.0.0.beta.11 breaks assets

2011-06-21 Thread Ryan Bigg
Oh, and I can confirm this issue. I would have thought this would have been picked up before beta11 was released, given it's basically *the* functionality in Sprockets. On Wednesday, 22 June 2011 at 9:05 AM, Ryan Bigg wrote: Have you tried cloning this into a local dir and specifying

Re: [Rails-core] [Rails 3.1.0.rc4] Issue with a resource named asset

2011-06-19 Thread Ryan Bigg
Pipped to the post! Nice work Guilermo! On 20/06/2011, at 5:51, Guillermo Iguaran guilleigua...@gmail.com wrote: You can do it with config.assets.prefix = /something -- Guillermo Iguaran Sent with Sparrow On Sunday, June 19, 2011 at 2:45 PM, Joel Moss wrote: Seems that introducing

Re: [Rails-core] rails engine view helpers load order

2011-06-18 Thread Ryan Bigg
I would have this helper module inside a namespace within the engine, which will allow people to have a similarly named one in the application. In the application's helper, then I would just include the engine's one, the process of which would make those methods available in the application

Re: [Rails-core] Cannot modify SafeBuffer in place thrown by CacheHelper

2011-06-09 Thread Ryan Bigg
This should also be fixed in the next release of Rails 3.0.x On 09/06/2011, at 3:21, Konstantin Shababov m...@etehtsea.me wrote: you can fix this using output_buffer = output_buffer.slice(pos..-1) instead of using slice! -- Konstantin Shababov http://github.com/etehtsea Sent with

Re: [Rails-core] Cannot modify SafeBuffer in place

2011-06-07 Thread Ryan Bigg
This should now be fixed with the 3.1.2 release of Haml: https://rubygems.org/gems/haml/versions/3.1.2. On Wednesday, 8 June 2011 at 11:40 AM, Michael Koziarski wrote: Only way I can avoid the error is if I remove everything from application.haml below %body Could this be the culprit?

Re: [Rails-core] Rails new without test unit

2011-05-26 Thread Ryan Bigg
Yes, it turns off test unit generators for your controllers and models but you can still access them through those helpers if you wish. On 27/05/2011, at 4:09, EMoreth everton.mor...@gmail.com wrote: When creating a new rails project (3.1.0.rc1) with no test unit options, it still create

Re: [Rails-core] Re: Who is the maintainer for Active Resource? and/or who is interested in working on it?

2011-05-16 Thread Ryan Bigg
(to add initial support for associations) waiting for review: https://github.com/rails/rails/pull/230 -- Guillermo Iguaran On Thursday, May 12, 2011 at 6:36 PM, Nicolás Sanguinetti wrote: On Thu, May 12, 2011 at 8:23 PM, Ryan BIgg radarliste

Re: [Rails-core] Re: Who is the maintainer for Active Resource? and/or who is interested in working on it?

2011-05-13 Thread Ryan Bigg
Please do submit these patches to the Rails project itself. It doesn't matter if you think are poorly written. They will be reviewed and you will get feedback on them, learning how to write better code and understand the Rails code as you do it. You're not learning if you're not doing. On

Re: [Rails-core] Rails 3 use bundler, rubygems doesn't work?

2011-04-15 Thread Ryan Bigg
Please ask this question on the rubyonrails-talk mailing list. This list is for issues about the Rails core itself. -- Ryan Bigg On Friday, 15 April 2011 at 4:31 PM, femto Zheng wrote: Hello, all, I'm using rails and ruport but require 'ruport/util' in my rails application doesn't work

Re: [Rails-core] Display specific field that has duplicate name to other table

2011-04-11 Thread Ryan Bigg
Please ask this question on the rubyonrails-talk mailing list, as this list is for issues pertaining to the core framework and is not for issues involving your application. -- Ryan Bigg On Monday, 11 April 2011 at 4:22 PM, adrianberenguel wrote: HI TO ALL I want to display a specific

Re: [Rails-core] Github issues

2011-04-11 Thread Ryan Bigg
There's actually been quite a few suggestions to move away from Lighthouse, there just wasn't a good enough alternative on the market. I think that with the new GitHub issues there's a high chance that Rails will be moving there shortly. -- Ryan Bigg On Monday, 11 April 2011 at 5:51 PM

Re: [Rails-core] rails_upgrade maintenance

2011-04-07 Thread Ryan Bigg
Hello! I've gained access to this repository this morning and have pulled in all the pull requests. I had somebody try it out but would like more people to give it a go. If you have a Rails 2 app handy please try it and report any issues you have. On 08/04/2011, at 3:23, Peer Allan

Re: [Rails-core] Question about KnownIP.tableize

2011-04-03 Thread Ryan Bigg
Did your rails g generate the KnownIP model or the KnownIp model? Your post says both. On 04/04/2011, at 0:20, Colin Law clan...@googlemail.com wrote: Using Rails 3.0.5 is it expected that ruby-1.8.7-p302 KnownIP.tableize = known_ips rather than known_i_ps as I had expected? The

[Rails-core] rails_upgrade maintenance

2011-04-02 Thread Ryan Bigg
, if nobody else is. -- Ryan Bigg -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Core group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com

  1   2   3   >