|
A MIRACLE posted:I'm ready to kill myself. It seems like prom candy put you in the right direction, but for what it's worth github.com/heroku/heroku-buildpack-ruby/blob/master/lib/language_pack/rails3.rb#L37-66 shows is exactly what's happening in the slug compiler. That might help you debug locally and quicker.
|
# ? Feb 24, 2012 07:56 |
|
|
# ? May 14, 2024 10:10 |
|
How the heck do you get a debugger to work in a Win 7 64-bit environment using eclipse. All of these directions are so vague.
|
# ? Feb 24, 2012 15:43 |
|
Physical posted:How the heck do you get a debugger to work in a Win 7 64-bit environment using eclipse. All of these directions are so vague. You're going to have a hard time finding help for that environment I think. When I develop Rails in windows (which is rare) I use Cygwin for the server. Neither Windows nor any of the IDEs are particularly well-supported, Cygwin takes away a lot of the pain IIRC.
|
# ? Feb 24, 2012 15:47 |
|
prom candy posted:You're going to have a hard time finding help for that environment I think. When I develop Rails in windows (which is rare) I use Cygwin for the server. Neither Windows nor any of the IDEs are particularly well-supported, Cygwin takes away a lot of the pain IIRC. Eclipse and RadRails say that they have support and I keep getting errors that I am not sure what they mean. code:
|
# ? Feb 24, 2012 16:09 |
|
I'm not totally sure. I don't know a lot of developers that run Eclipse. It seems like most Rails devs run development server via the command line (using Webrick or Mongrel or whatever) and then use their text editor of choice to write code (TextMate seems to be the most popular judging by screencasts, but Vim is up there too). By using these pre-packaged but somewhat poorly adopted solutions you may be setting yourself up to run into stumbling block after stumbling block, is there a reason you're determined to use Eclipse? Edit: Also, #rubyonrails on freenode is a good place to ask for help, there are a lot more people there than there are reading this thread.
|
# ? Feb 24, 2012 16:32 |
|
prom candy posted:I'm not totally sure. I don't know a lot of developers that run Eclipse. It seems like most Rails devs run development server via the command line (using Webrick or Mongrel or whatever) and then use their text editor of choice to write code (TextMate seems to be the most popular judging by screencasts, but Vim is up there too). By using these pre-packaged but somewhat poorly adopted solutions you may be setting yourself up to run into stumbling block after stumbling block, is there a reason you're determined to use Eclipse? Well it's no different than notepad++ if it doesn't have integrated debugging right? Eclipse is awesome and if you haven't ever used it then I can forgive you saying that it is a poorly adopted option. It's cross platform, written in Java. I use eclipse classic and there is a plugin for RoR that helps with the auto completes. I use the command line to run the WEBrick server. I think the problem is debugging support on windows in general, is that right?
|
# ? Feb 24, 2012 16:38 |
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 |
|
A MIRACLE posted:How the hell do they do autocomplete for a dynamically-typed language? Didn't know that was possible. Is it reliable? I've seen some Python IDEs try to do autocompletion. It's one of the most things you'll ever run into. It alternated between "showing absolutely nothing" and "showing 400 possible methods that you'll never want to use".
|
# ? Feb 24, 2012 17:23 |
|
It does it's best to guess. Usually local variables get remembered. It also does alot of formatting auto complete with html tags and brackets and stuff.
|
# ? Feb 24, 2012 17:26 |
|
Physical posted:It does it's best to guess. Usually local variables get remembered. It also does alot of formatting auto complete with html tags and brackets and stuff. There's a lot more to "autocomplete" than "oh, I typed po, and the editor knew I wanted to type the variable poop!" Usually when we talk about autocomplete the biggest focus is on, say, suggesting sensible methods that could be called on an object. I just don't see how something like that could ever work well with a dynamically typed language. And lots of editors can do automatic formatting, auto-close HTML, etc. But I'm just a bitter emacs weenie, so use whatever editor you like
|
# ? Feb 24, 2012 17:35 |
|
Kim Jong III posted:There's a lot more to "autocomplete" than "oh, I typed po, and the editor knew I wanted to type the variable poop!"
|
# ? Feb 24, 2012 18:03 |
|
I can see the allure of wanting ruby autocomplete but honestly, there just aren't that many methods to memorize. It's not like PHP where there's no consistency in function naming or argument order. If you want a debugger I highly recommend just running your actual server via command line and dropping the debugger in your code where you need it. I know Eclipse is really popular, I just don't think it's very popular among Rails devs.
|
# ? Feb 24, 2012 19:39 |
|
Whats the convetions on name tabes fields? say I havecode:
code:
Physical fucked around with this message at 22:06 on Feb 25, 2012 |
# ? Feb 25, 2012 21:32 |
|
Use an underscore.
|
# ? Feb 25, 2012 21:42 |
|
Physical posted:Whats the convetions on name tabes fields? say I have Have you tried normalizing the games into their own table that has a "name" field?
|
# ? Feb 26, 2012 20:49 |
|
Here is an easy one. I'm running win 7 x64 and my project is using MySQL. When I do a say code:
Why is it not dating the migrate file? This is part of my first project at work, and the simplest loving command is getting in the way. What config file would affect this? So then when I do rake db:migrate the new table isn't recorded and this is what happens when I do with with --trace code:
Physical fucked around with this message at 01:50 on Feb 27, 2012 |
# ? Feb 27, 2012 01:37 |
|
You mentioned earlier that you had access to a *nix box or VM? Honestly I would do my development there, Rails under Windows is painful. I have no idea why it wouldn't be dating your migrations, I've never seen that happen before.
|
# ? Feb 27, 2012 03:07 |
|
prom candy posted:You mentioned earlier that you had access to a *nix box or VM? Honestly I would do my development there, Rails under Windows is painful. I have no idea why it wouldn't be dating your migrations, I've never seen that happen before. But its ok, because all the command line tools I'll run in linux, and use a shared folder. It does mean I have to do more configuration. its just the one project that it isnt being a migrate time in front of the file it produces.
|
# ? Feb 27, 2012 03:49 |
|
Did you accidentally change the migration after applying it? I've done that more times than I'd like to admit.
|
# ? Feb 27, 2012 03:53 |
|
Cock Democracy posted:Did you accidentally change the migration after applying it? I've done that more times than I'd like to admit. I think the problem starts with why the migrate files are getting dates. instead of 20120226_create_table.rb its _create_table.rb No other projects are doing this but the other projects are just demo tutorial exercises.
|
# ? Feb 27, 2012 03:57 |
|
drat. I guess that is pretty messed up.
|
# ? Feb 27, 2012 04:16 |
|
this is just do drat frustrating. I just want to be able to use the tools I need. Why is this project braking that?
|
# ? Feb 27, 2012 05:21 |
|
Same project under *nix, same problem?
|
# ? Feb 27, 2012 05:37 |
|
prom candy posted:Same project under *nix, same problem? No I don't even know how to get the files over to the linux virtual machine. Adding shared folder in VirtualBox says guess additions isnt added and I don't knot enough about linux to figure this out.
|
# ? Feb 27, 2012 05:54 |
|
There should be a menu option in VirtualBox for "Install Guest Additions". I think it's under devices. Alternatively, just push it up to GitHub or something and clone the repo back down to your VirtualBox.
|
# ? Feb 27, 2012 14:14 |
|
enki42 posted:There should be a menu option in VirtualBox for "Install Guest Additions". I think it's under devices. When I click that, nothing opens. It sucks. So I come in after trying to get this new part of the project scaffold and configured all weekend and talk to my boss about what happened, he says "Oh yea happens to me too [he is on a linux workstation] just put your own date/time string in front" This alarms me for two reasons: 1) Because I didn't get done with this thing over the weekend like I wanted to and since its only my third week. 2) Because I should have just emailed him and asked but now I look like a retard who wasted is weekend and and incompetent. gently caress I hope I don't lose another job. Physical fucked around with this message at 14:40 on Feb 27, 2012 |
# ? Feb 27, 2012 14:38 |
|
I have never heard of this issue ever, is this a fresh project or something you cloned at your new job? Is this a work issued machine or your own?
|
# ? Feb 27, 2012 15:07 |
|
prom candy posted:I have never heard of this issue ever, is this a fresh project or something you cloned at your new job? Is this a work issued machine or your own?
|
# ? Feb 27, 2012 15:20 |
|
Is this set anywhere:code:
|
# ? Feb 27, 2012 17:17 |
|
Mac users, what makes up your rails development environment?
|
# ? Feb 27, 2012 19:36 |
|
prom candy posted:Is this set anywhere: That is not showing up anywhere in any of the project files. What file is it normally under? I want to put it in there with = true
|
# ? Feb 27, 2012 20:01 |
|
Splinter posted:Mac users, what makes up your rails development environment? A linux VM maybe haha? But seriously, Eclipse is a cross platform IDE written in Java and I really like it because it does my AS3 (Flash [Flash Builder is the adobe brand name]) compiling for games, Java, Android, PHP and HTML and now RoR. I'm a Win 7 guy though so ymmv.
|
# ? Feb 27, 2012 20:03 |
|
Splinter posted:Mac users, what makes up your rails development environment? http://pow.cx/ app server https://github.com/sstephenson/rbenv ruby runtime management https://github.com/spawngrid/kerl erlang runtime management http://downloads.basho.com/riak/ built from source http://mxcl.github.com/homebrew/ other packages http://aquamacs.org/ editor http://www.secretgeometry.com/apps/cathode/ terminal http://gitx.laullon.com/ version control when i want to commit a partial file
|
# ? Feb 27, 2012 20:06 |
|
And some alternatives "rails server" app server http://beginrescueend.com ruby runtime management http://www.sublimetext.com/2 text editor http://www.iterm2.com terminal http://www.sourcetreeapp.com version control
|
# ? Feb 27, 2012 21:06 |
|
Kinda related, but pow + rack-legacy is a really neat combo if you need to run old PHP apps but also want to keep your environment consistent.
|
# ? Feb 27, 2012 21:20 |
|
Splinter posted:Mac users, what makes up your rails development environment? While I've only used sinatra in the last two years:
|
# ? Feb 27, 2012 21:54 |
|
Physical posted:That is not showing up anywhere in any of the project files. What file is it normally under? I want to put it in there with = true application.rb Open up rails console and type YourApp::Application.config.active_record.timestamped_migrations to see what it's set to. Replace YourApp with whatever your app's module is called in config/application.rb quote:Mac users, what makes up your rails development environment? rails server rvm TextMate github mysqlol
|
# ? Feb 27, 2012 22:41 |
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 |
|
redacted
Pardot fucked around with this message at 22:16 on Dec 8, 2013 |
# ? Feb 27, 2012 23:04 |
|
|
# ? May 14, 2024 10:10 |
|
my general Mac rails/sinatra/jekyll toolbox is something like: - rbenv (death to gemsets) - pow - Terminal.app / zsh - git / github - MacVim - postgres - virtualbox (for running development db instances sometimes)
|
# ? Feb 27, 2012 23:15 |