I'm a rails noob working through a tutorial. I added a CSS layout to my template and now the method buttons like "Show", "Edit" etc include a path, like "Show /bugs/field_samples/3". I was wondering if there was something in the CSS that could cause it to change like that. The CSS is "Blueprint" if that matters.
|
|
# ¿ Mar 17, 2011 01:55 |
|
|
# ¿ Apr 28, 2024 23:38 |
here's the code:code:
|
|
# ¿ Mar 17, 2011 02:59 |
atastypie posted:Looks like you loaded the blueprint print stylesheet and not the screen stylesheet. Thanks. Is there a reason the changes I make on a views/ file take some time to propagate (as opposed to showing the results instantly)?
|
|
# ¿ Mar 17, 2011 03:35 |
.
|
|
# ¿ Apr 4, 2011 20:27 |
Has anyone here used http://refinerycms.com/ ? I'm in charge of picking a CMS for our custom development projects. The main requirement is that it can be configured to pull xml feeds from our main servers to populate things like Upcoming Event widgets. We're an events-based calendar software company at heart, and some of our customers want websites to go along with the main product. So far we've been one-offing everything in .NET2.0, reusing controls that feed on our xml streams. But it's time-intensive and the developer (me) has to put everything together, which distracts from the main product. If we had a cms then the support/marketing/design side could take some of the burden off the developers. My boss suggested modx, which looks decent, but PHP makes me queasy and I'm looking for alternatives. Simbyotic posted:sounds like you're using rails 2. "rails new" is a rails 3 command. "rails /path/to/myapp/" is the rails 2 command. type "rails -v" to see what's up.
|
|
# ¿ Jul 20, 2011 19:34 |
Doing a project in rails for work. I have all these .ind files in a tmp directory, do those need to be in version control? My office uses SVN Should I be using git instead?
|
|
# ¿ Aug 4, 2011 20:37 |
I think SASS is pretty neat. But do I have to leave the Sass CLI listener open and watching my .scss files for diffs, or can the interpreter just use them un-converted by virtue of having the .scss extension? Windows dev here.
|
|
# ¿ Aug 9, 2011 14:06 |
Pardot posted:I don't understand the appeal of scss. Sass is great though. I like it a little better. I'm weird and like braces and semicolons though. code:
|
|
# ¿ Aug 9, 2011 20:45 |
Bob Morales posted:Gotcha. In this particular case they'd want ALL the evaluations for the promotion so I'm not sure why they would put 0-99. Ugh. 99 is a pretty big number they'd probably never need to go higher than that.
|
|
# ¿ Aug 10, 2011 21:57 |
Rails noob here. Is there a "cleaner," less bulky way of extracting inner text XML with Nokogiri? Feel free to make fun of my awful code.code:
A MIRACLE fucked around with this message at 22:08 on Aug 22, 2011 |
|
# ¿ Aug 22, 2011 20:45 |
What are the differences between these?code:
|
|
# ¿ Aug 26, 2011 20:19 |
Oh My Science posted:I know this was answered awhile back, but how can I speed up the load time of a heroku app? Are you on a free account? They'll spin your dyno down if there's no activity for a few minutes.
|
|
# ¿ Aug 30, 2011 18:22 |
looked it up. heroku has pretty extensive documentation.heroku dev center posted:What is dyno idling?
|
|
# ¿ Aug 30, 2011 18:46 |
enki42 posted:Also, the migration setup is somewhat weird on Heroku - I'd really like to be able to do database migrations BEFORE deploying code (since 99% of the time they are additive, and code that doesn't know about the new columns will still happily work, whereas the converse is very rarely true.) I suppose you could pull/migrate/push your db but that's not really a clean solution.
|
|
# ¿ Aug 30, 2011 21:56 |
I'm having some trouble getting DateTime.strptime() to work properly. Getting "Argument Error (invalid date)"code:
|
|
# ¿ Sep 29, 2011 21:05 |
skidooer posted:In Ruby, single quoted strings are not parsed for interpolated variables. Not sure how necessary your conversion to string is, but keeping with the intent of your code: Thanks for the quick reply! I still have a lot to learn about this language.
|
|
# ¿ Sep 29, 2011 21:23 |
NotShadowStar posted:Here's me going on another tirade on you should learn the language first. Don't freak out, I'm very committed to learning Ruby standalone.
|
|
# ¿ Sep 29, 2011 23:51 |
I have a scope-related question. I've implemented a many-to-many relationship in my app between categories and events. I want to be able to filter by a specific category. Here's the relevant code, (forgive me for its horribleness):code:
code:
A MIRACLE fucked around with this message at 16:21 on Oct 14, 2011 |
|
# ¿ Oct 14, 2011 16:17 |
Yeah taps is... kinda bad. Like, it breaks with RefineryCMS is you have any non-default settings set on the server, and then try to db:pull. You have to go into the console, manually delete the settings and then recreate them. Super annoying.
|
|
# ¿ Nov 8, 2011 19:40 |
Doc Hawkins posted:You'll want to install RVM first, before rubygems. See if that helps. Nice! But you might think about teaching Postgres if you're promoting Heroku.
|
|
# ¿ Nov 17, 2011 01:44 |
NotShadowStar posted:It doesn't really matter what RDBMS you're using as long as you stick to AR migrations. You can develop locally on sqlite and push to Heroku and Postgre without too much issue. I've run into issues where my local sqlite queries ran fine, but imploded when I deployed to Heroku on postgres. For example, a simple case-insensitive search Works in SQLite: code:
code:
|
|
# ¿ Nov 17, 2011 20:28 |
Thanks guys
|
|
# ¿ Nov 17, 2011 23:07 |
rugbert posted:Is anyone still experiencing git push issues with heroku? I keep timing out but the support page says everything is fixed. Not having any problems, pushed last night. Are you on Windows? I would just open a ticket with support, they're usually good about getting back to you. A MIRACLE fucked around with this message at 17:26 on Nov 22, 2011 |
|
# ¿ Nov 22, 2011 15:47 |
I'm a noob help me. I want my form select tags to retain their search parameters. code:
|
|
# ¿ Dec 1, 2011 00:49 |
manero posted:You're the man! The second example did the trick. I guess I'll learn to use select_tag instead of select in the future. e: Anyone know how to escape the html `options_from_collection_for_select` produces? I'm getting some &-amp's in my options tags. I tried calling raw, html_safe on it to no avail. A MIRACLE fucked around with this message at 22:48 on Dec 2, 2011 |
|
# ¿ Dec 2, 2011 21:52 |
Oh man. I am having a hell of a time getting postgres running. It used to work fine... then I didn't use it for a while, now I'm getting the `server not listening error' ( OSX10.7 ) My pg_hba.conf and postgresql.conf check out fine. Running `ps aux | grep postgres' shows that I DO have a server process running: code:
e, oh yeah, here's what ActiveRecord throws: code:
code:
A MIRACLE fucked around with this message at 22:10 on Jan 4, 2012 |
|
# ¿ Jan 4, 2012 21:59 |
BonzoESC posted:Where'd you install postgres from? Lion comes with a psql client that doesn't work with homebrew postgres, and it's pretty expedient to sudo rm /usr/bin/psql /usr/bin/createdb /usr/bin/dropdb Pretty generic: code:
`Running' 9.1, used the installer from PG's website IIRC.
|
|
# ¿ Jan 4, 2012 22:51 |
Re: Postgres woes; cc: BonzoESC, Pardot Well I'm an idiot and don't know how to read the output of ps, which led me to believe that postgres had an active server process (it didn't). Needless to say today has not been the most productive day as I am still struggling with launching the server. So I do sudo su - postgres to run pg_ctl start, which tells me that I don't have PGDATA set as an env. variable. This is news to me as PG was running flawlessly a few weeks ago. But I digress, export PGDATA=/Library/Postgresql/9.1/data and continue. Then pg_ctl tells me that my data folder has too many permissions. More specifically code:
|
|
# ¿ Jan 5, 2012 23:22 |
BonzoESC posted:Install postgres from homebrew, follow its instructions, call me in the morning. Just got to this. Thanks man I'm good to go now.
|
|
# ¿ Jan 6, 2012 21:10 |
Yeah, really wanted to go but filled up before I finalized my travel plans. Oh well.
|
|
# ¿ Jan 10, 2012 06:49 |
Pretty much. Read up on .where if you're interested in returning collections.
|
|
# ¿ Feb 1, 2012 19:43 |
What's the question, then? Rails is linking them behind the scenes using the inherited ActiveRecord and ActiveController classes. See your routes.rb for examples of invoking ActiveController methods.
|
|
# ¿ Feb 1, 2012 20:17 |
I'm ready to kill myself. Okay not really but my friend/frontend dev guy did a pull request today where he basically rewrote our entire landing page, started using compass / blueprint, and now I'm running into problems with the asset pipeline deploying to heroku. It's gotten to the point where I'm ready to scrap the whole thing and redo it in Sinatra. Also I'm a little hung over because I got day-drunk at lunch, but still. Can anyone point me to info on the stylesheet link tree? I think that's where the problem is, like it's not precompiling a few stylesheets because they aren't in the tree or something. Here's what my log looks like:code:
|
|
# ¿ Feb 23, 2012 03:37 |
How the hell do they do autocomplete for a dynamically-typed language? Didn't know that was possible. Is it reliable?
|
|
# ¿ Feb 24, 2012 17:04 |
Splinter posted:Mac users, what makes up your rails development environment? * rvm, usually 1.9.3 * Rails 3.2 * Postgres * Thin rails server thin * Heroku * Textmate * git / Github * Terminal e: \/ pm sent! \/ A MIRACLE fucked around with this message at 23:30 on Feb 27, 2012 |
|
# ¿ Feb 27, 2012 22:56 |
Sublime's cool, it also has a vi editor mode, was in a recent patch. You just hit esc and you're in vi mode. You have to enable it in the config first btw.
|
|
# ¿ Feb 29, 2012 17:27 |
Physical posted:Why is Vi worth using? Some people like it? I think they added that feature to ease the transition for old school VIM users coming to a GUI editor. I know I had to break the habit of typing :w every time I wanted to save when I got my job writing C# in Visual Studio.
|
|
# ¿ Feb 29, 2012 17:36 |
Physical posted:Ok so this is kind of a rudimentry question but I am having a hard time dissecting it to do a fruitful google search. Um yeah it looks like LazyHighChart.data is an array object, as connoted by the [] operator wrapping it. So in this case you could try @data[0][:data] or even @data.first[:data]. Unless @data is going to point to a collection of hashes you might want to think about refactoring. But there's not enough code to tell. Also use carriage returns when posting code please. A MIRACLE fucked around with this message at 15:35 on Mar 20, 2012 |
|
# ¿ Mar 20, 2012 15:32 |
That seems like a lot of work done in the view layer. Physical have you tried moving some of that logic to the model to see if that simplifies things a bit?
|
|
# ¿ Mar 28, 2012 04:00 |
|
|
# ¿ Apr 28, 2024 23:38 |
Yeah Physical, remember Fat Models, Skinny Controllers. Your controllers (in conjunction with the router) are basically for matching requests with the appropriate responses, no more. e: any goon ops hiring Ruby devs right now? I'm thinking about leaving my .NET job and pursuing Ruby development full-time. And I wanna see what's out there... A MIRACLE fucked around with this message at 23:38 on Mar 28, 2012 |
|
# ¿ Mar 28, 2012 17:46 |