|
Mr. Wynand posted:sooner or later an if RAILS_ENV=="development" is going to slip in your code somewhere... code:
|
# ¿ Aug 10, 2007 23:57 |
|
|
# ¿ May 4, 2024 05:50 |
|
Mr. Wynand posted:RAILS_ENV should get deprecated and the above should be made the default. Until then you wouldn't be able to do it without breaking plugins. Yeah. The nice thing is that for a while now, database.yml has been run through ERB before being parsed. So using aliases, anchors, and mappings in YAML plus reading in other files by breaking out into ERB, you can actually do a lot of clever things with database.yml alone.
|
# ¿ Aug 15, 2007 02:52 |
|
Hop Pocket posted:A question on rollbacks using capistrano. I have about 15 migrations in my source code, and I decided to change migration #7 to change the column names of a model object. On my development machine, I simply rake'd it back and then forward again: The rule we follow on my team is that once a migration has been committed to SVN you should rarely go back and modify it to do things like change the column names. Between the time you committed and the time you decide to modify it, it could have been rolled out to testing, staging, and then production, not to mention other developer's machines. Unless there's a real good reason for doing otherwise, just add a new migration that alters the column names.
|
# ¿ Nov 23, 2007 23:31 |
|
Hop Pocket posted:This might be more of a scriptaculous question, but I can't seem to get my animations that my RJS template return to execute serially. In other words, they seem to always run at the same time. Is there a way to get any visual_effect to run only after the previous one has finished? Grob posted:If you're coding in pure javascript, Scriptaculous allows you to execute events once the animation has finished, however there is no API for doing this in RJS. http://wiki.script.aculo.us/scriptaculous/show/EffectQueues You can use EffectQueues to get that behaviour, they can sometimes behave strangely but it's likely what you want.
|
# ¿ Dec 16, 2007 19:01 |
|
Grob posted:Interesting, I didn't know effect queues were supported by RJS! http://wiki.script.aculo.us/scriptaculous/show/EffectsTreasureChest Check the Effect.QueueThis section, it may be what you're looking for. I haven't used it myself but it looks like it'll let you queue up an arbitrary function.
|
# ¿ Dec 16, 2007 20:01 |
|
Heffer posted:If I add in someones library to get their functionality, do I run the risk of them mucking up some low-level classes like Fixnum? That feels a little dangerous to me. It's more of a problem in theory than in practice. The flexibility it allows is worth the ability to blow your foot off with it.
|
# ¿ Dec 27, 2007 20:16 |
|
Hop Pocket posted:
Reinstaling the MySQL gem could be worth a shot.
|
# ¿ Dec 29, 2007 17:50 |
|
|
# ¿ May 4, 2024 05:50 |
|
atastypie posted:Two quick questions: I like ControllerName#Action myself. Like SessionsController#create. It's kind of standard notation for describing an instance method of a class or module.
|
# ¿ Jan 4, 2008 23:07 |