irb
Interactive Javascript gem?
I\'ve found some online interactive Javascript editors, but I wonder if there is a local equivalent as a gem that lets me 开发者_运维技巧test Javascript just like IRB and Rails console in Mac?Try thes[详细]
2023-01-12 14:35 分类:问答Can't turn array into a string error
I have a simple call JSON.parse(开发者_JAVA技巧Panda.get(\"/videos/#{self.panda_video_id}/encodings.json\"))[详细]
2023-01-11 22:03 分类:问答How come this works and doesn't work in IRB?
I have Users . Users have_many :organizations If I do: User.find(:all).select {|u| u.organizations.first.name 开发者_如何学运维}[详细]
2023-01-11 19:02 分类:问答A one-time generated CSV file in RoR
Is it possible to create a CSV file right out of the command line in IRB or elsewhe开发者_运维知识库re with a one-time use on it. Say, I just need a CSV file with all my user\'s first name on it.[详细]
2023-01-11 18:54 分类:问答How to force a vertical table or limit columns in Hirb?
I want to display few active records in rails console, I have Hirb enabled. The table is narrow enough to be displayed (so Hirb uses standard, horizontal table) but columns are so narrow that content[详细]
2023-01-11 06:20 分类:问答Ruby - return an array in random order
What is th开发者_StackOverflow社区e easiest way to return an array in random order in Ruby? Anything that is nice and short that can be used in an IRB session like[详细]
2023-01-11 01:51 分类:问答Reload rubygem in IRB
Is there a way to \"reload\" or \"refresh\" a rubygem in memory? As i\'m playing in irb, occasionally I like to mod开发者_运维问答ify my gem files, and if i require the same gem, it does not update in[详细]
2023-01-11 00:00 分类:问答How can I colorize logger output in a rails 3 console
How can I color开发者_C百科ize and possibly bold the output from Rails.logger in my rails3 application?Be kind to other programmers, don\'t embed the escape sequences directly in your strings. Maybe u[详细]
2023-01-10 05:46 分类:问答Discover the file ruby require method would load?
The require method in ruby will search the lib_path and load the first matching files found if needed. Is there anyway to print the path to the file which would be loaded. I\'m looking for, ideally bu[详细]
2023-01-09 22:30 分类:问答edit with vim in irb
I\'m trying to set up editing within irb using vim as described in this vimcast: http://vimcasts.org/episodes/running-vim-within-irb/[详细]
2023-01-09 08:35 分类:问答