PDA

View Full Version : Ruby



Pages : 1 2 [3] 4 5 6 7 8 9 10 11 12

  1. If choosing between ruby 1.9s, is it recommended to use 1.9.1 or 1.9.2?
  2. What's the cool way to create a new skeleton project with rspec and cucumber baked in?
  3. Does Ruby provide any standard facilities to somehow convert CP437 data to UTF-8?
  4. What about if I have "Mr INDERJIT SINGH (Ang Mo Kio)" and I want to remove "(Ang Mo Kio)" so that I
  5. What does writeInt() do in Java?
  6. Is there anything I can do to get a nice pp-style format for printing to file?
  7. What would be the optimal way to download a file from a URL and save it locally in a different name?
  8. Are there some special implications of using "nil" as a key in a hash?
  9. What other self should there be?
  10. Is there a way to check if the server closed my TCPSocket?
  11. Is logger the best option for writing output to a file?
  12. Is that probably the best and easiest way to get a nice ruby install ?
  13. Isn't it kind of lame that there is no way to define a utility method that's available everywhere in
  14. What can I guard the File.open call with so it won't fail?
  15. Is there a way to create a temporary directory in the filesystem in ruby?
  16. Is there a skeleton project that has already integrated devise and omniauth?
  17. Does ruby have a function to normalize path names?
  18. Is there a method to check whether a class inherits another one?
  19. Whats the best way to dynamically add an instance method to a specific object and not all objects of
  20. Is there a way to append values to existing keys on a hash from another hash?
  21. Can I use update_all with a variable?
  22. Is there any way to make an object out of scope?
  23. Is Ruby 1.9 the preferred production version these days?
  24. What's the general strategy for library developers -- support 1.8 and 1.9 out of one source tree, or
  25. Are there any guides on how to bootstrap a project / gem?
  26. Is there such a concept as a thread-local instance variable?
  27. How I can get the key name (:error) of my hash {:error=>:cant_ship_out_of_stock} and tranform to_s ?
  28. Is there away to set the before_filter to apply to whole controllers instead of just actions?
  29. Can I use update_all with a variable?
  30. How do I create an array with x number of specific objects?
  31. What's Rails' 2.3.8 equivelant to match '/media/*dragonfly', :to => Dragonfly[:images] ?
  32. How can I call a controller method from a model method?
  33. Is autotest meant to only get "triggered" when I save my spec file?
  34. Whats the good way to initialize an object of a symbol?
  35. What is the latest greatest tool for deploying rails 3 applications?
  36. What ActiveModel callback can I use to execute a method before validation on create ?
  37. Where in a scaffold would I direct a 'post' request from my ajax?
  38. Is there something similar to Memoize, but with a possibility to cache by a limited set of method ar
  39. How do I set the default time zone for my rails app?
  40. How can I check whether a method accepts a block or not?
  41. Can someone point me at a rtfm or explain the differences between %x and sh() ?
  42. What's the best way to profile memory usage for a rails app?
  43. What is best practices regarding when I have a show method that tries to return a product that doesn
  44. How do I set the user_id field in my projects table from the controller create action?
  45. When the array is pretty large, #each seems to consume a lot of memory. I suppose it's because #eac
  46. If the element is div id steel inside div id resourcebar it's #resourcebar #steel right?
  47. What's a good way to add runtime commands to a server?
  48. Can you pipe stuff to stdin on a shell command call from ruby?
  49. Is there any really simple library, for image manip?
  50. Is there any good documentation on putting conditions on queries with included tables combined with
  51. Is there a way I can figure out if a VALUE I have has already been garbage collected?
  52. Is there an easy way to get the full path name of the Ruby current script, under Mac OS X?
  53. If I have nested 'each' loops, how can I call 'next' on the outer loop from the inner loop?
  54. Should I really try to remove 1.9.0, or can I pull it off simply symlinking the proper version to /u
  55. What do you need to di in your app to ensure that images and scripts and stuff are loaded over https
  56. Can I have non-model fields in a form?
  57. Is there such a thing as an "interactive step through" debugger for ruby so that I can e.g. set brea
  58. Is there a win32-api gem for ruby 1.9?
  59. Is there such a thing as an "interactive step through" debugger for ruby/rails so that I can e.g. se
  60. If I change the time zone preferences for active record, is it really going to fix anything?
  61. What is the fastest way to sort a value referencing an object?
  62. Is there a 1.9 friendly windows ruby installer?
  63. Can someone help me make sense of this?
  64. Is it possible to add a route from outside of routes.rb?
  65. Is there a way to check whether a string can be represented as ascii or not?
  66. When I use update_attribute(), does rails generate a sql statement which only updates that one colum
  67. Does .update_attribute call .save on the object?
  68. How do I build an existing model based on a hash variable?
  69. How do I bind local variables to a block?
  70. What was the method to correctly get the length of a UTF-8 string?
  71. Is there any way to change the default ID assigned by fields inside form_for?
  72. How do I force a string to html_safe so haml doesn't escape it?
  73. Is there any way to pass arguments to a SpecTask?
  74. Is there a better way to write this if statement ?
  75. How do I do platform specific dependencies in rubygems?
  76. When using ajax and javascript in rails what is it called when you still allow for users without js
  77. What part of "After an entire day, I can compile the source fine, but no matter what I do, "no such
  78. Is it a good practice to separate sql code from the main logic of an app, ie, move the sql code some
  79. How can I check in code whether Model Post :has_many :comments?
  80. Is there a nice pre-built rails plugin for making a calendar that lets you select dates?
  81. When installing gems; should I use sudo gem install ;or just gem install?
  82. Do you want the installed gems to be available to all users, or just the current user?
  83. What's the best/easiest way to run a raw sql command in rails3?
  84. Is it possible to retrive the amount of declared arguments for a class method?
  85. Should I attempt to do some ruby?
  86. Is there a way I could make a "link_to" url post a form ?
  87. What ruby version do you try that on?
  88. Is it possible to get the file name of the file that is being uploaded though file_filed?
  89. Is there any way, inside a regex, to get the string being matched against?
  90. How do I get the cancan access denied page to redirect to root?
  91. If I have two has_manys. User.has_many :jobs, User.has_many :side_jobs that both point at a given c
  92. How can I make the capture() method avalable I my views?
  93. How can I make a diff utility in ruby ?
  94. How can I make the capture() method avalable I my views?
  95. How would I specify more than one borough for a single volunteer in the database then?
  96. Is there anyway, in C-Ruby, to write a function that returns a value without a name?
  97. Do you have experience in languages like Haskell, ML, J, R, Lisp, Clojure, Scala, etc?
  98. How can I record in a log file everything that my program prints?
  99. If a have a case/when with a few names as the whens... can I call a when from another when?
  100. Do you just want case x; when :a, :b; something; else; somethingelse; end ?
  101. Will Ruby honestly not work outside of RVM nowadays?
  102. Should mocking work in cucumber?
  103. Does this look fine if I want to show the image if column[:is_primary_key] returns 1?
  104. Is there a 'lint' program for ruby files?
  105. How about not being lazy fucks, pulling your head out of the 70's, and typing out "format"?
  106. Is there anything I need to install to be able to do a "gem yank" ?
  107. Is there any really simple clean way to remove x characters from the beginning of a string?
  108. What's the problem with tgz and windows?
  109. Is there a good vim book?
  110. Is there a way of seeing an item stored in actioncache?
  111. How is it that Digest::MD5.hexdigest("yoyo") and Digest::MD5.digest("yoyo"), represent the same hash
  112. Is it possible to somehow store strings in a more efficient type that requires fewer bytes?
  113. If I set a variable to nil the garbage collector should take care of cleaning the trash, right?
  114. Did anybody get disappointed after a while coding with rails ?
  115. Did something change in rails 3 routing?
  116. Is there a way to save the result of rake rails:upgrade:check ?
  117. Is there a way to have local variables available to you when you include a file in irb?
  118. Can someone discuss with me, the general process of displaying only sections of a data type (via a c
  119. Is there a gem that will let you 'twitter' from the command line?
  120. Is there a ruby operator that's num*10^x?
  121. What's a good way to handle exceptions for xhr requests?
  122. What am I doing wrong and or how do I fix it?
  123. Where can I find a list of win32 dll's and the methods they contain?
  124. Can I add a begin/rescue/raise so if my app fails at some point, go back to begin part?
  125. How can I string.capitalize the first letter of each word in a string?
  126. Does anybody know of any tutorials for ActiveMerchant and Rails 3?
  127. How do I test to see if a model has an attribute?
  128. Do I need to create the model files by hand?
  129. Is there a way to remove a gem and all its deps?
  130. Do Ruby's built-in regexes don't even support lookbehind?
  131. How to create a fork, read its output and wait until it's terminated/finished executing?
  132. Can someone help me out with the issue "no such file to load -- zlib" I am getting trying to install
  133. Is there any way to invoke an after_filter when using caches_action?
  134. Isn't there something to do byte unstuffing in a network packet?
  135. What is a good tool in ruby for generating a pdf from html?
  136. Is it because I specify a range for k?
  137. Is there a clever way to do something like File.open("dest", "w"){|outf| ...}, but skip the open and
  138. If I had foo = "String" how could I make bar by an instance of the class foo refers to ?
  139. Does ActiveRecord have a facility for translating multiple Insert statements into a single "batch" i
  140. If I am using the ruby script/generate scaffold command, what would the type of a field be if it con
  141. If I'm trying to list my products alphabetically and I want to include a header/title for each lette
  142. Is it viable to try and run trac and svn as the sever and that svn-git stuff for development?
  143. If I script/destroy both model and controller for a class, I can re-create it no problem, yes?
  144. Is there a method like ``, which returns the STDOUT output, but that works like system()?
  145. What's the difference between "and" and "&&"?
  146. Is there any other char beside () that I can use to have an 'or' on regexp?
  147. Is there a way I can play with views for notifiers in the browser to perfect them, instead of emaili
  148. What are the terms for all command line arguments?
  149. Is there, within a gem's code, a way to output the directory from which the gem is contained?
  150. Did I start that irb with the system gem, my local sandbox, or some other location?
  151. How do I get a model's string just like it comes out in the console, with r n?
  152. If I lock! right after find_or_create in a transaction, doesn't that provide a narrow window for a r
  153. How do I update all the attributes of a model object without saving it, from a hash containing the k
  154. What do you guys use for backups?
  155. Where should run_me be defined?
  156. How would I.. have one script listen for events and spawn threads (i have this working) and then hav
  157. Is there a better way than having to use an unless statement for possible nil values?
  158. Is there a big difference between redis and redis-rb gems?
  159. Can I access my app's models in a rake task somehow?
  160. If I want to print the time in my view, should I then create a new time object in the controller and
  161. Is there a way to load the rails environment in my cron script?
  162. Is there a way to add an onload to <body> in a specific page without having to create a new layout?
  163. How do you guys like this structure for configuration of jobs: http://pastie.org/999041 ?
  164. Are all helpers in app/helpers available to all the views?
  165. Do anmed scopes let you use a method or just column names?
  166. Is there a way to get Mail to read from a filecontent instead of passing a filename ?
  167. Is there a possibility to do a content_for(:js) after all was rendered?
  168. What is called when you redirect someone back to the previous page after an error and their temp for
  169. What's the easiest way to route admin.domain.com/ to a different controller than x.domain.com/?
  170. Is there a way to fetch an association (:include) when searching with thinking sphinx?
  171. If I have an song object that contains a lot of songs, is there any easy to update a specified field
  172. Is there a way for rails to not log (to development.log) calls to a specific method?
  173. Should I make a secondary table with one column for paperclip?
  174. What's the rails 3 way of linking to a subdomain?
  175. What's the best way to not repeat myself between validates_inclusion_of and the options for a select
  176. Are generators broken in beta4?
  177. Is there a GUI sql management package for ubuntu?
  178. What would be the cleanest way to handle an error on the after_update callack of a model?
  179. How can I write one entry to two fields to two tables?
  180. Is there a way of having a cap task only execute on 1 server in 1 environment ?
  181. Is there a way of turning off asset host for 1 or 2 particular images?
  182. If I have a reference to a model that may have been deleted, is there a method I can call like model
  183. Is there a similar method to rake db:schema:dump to take the data from my existing db and generate a
  184. Where do I define what ruby version to use in my application?
  185. Does rails have a method to parse relative time, or should I use something like Chronic?
  186. How do I tell which gems and plugins are depended upon in a rails production server?
  187. Is it possible to create a migration that creates/drops the current schema so I can delete all the o
  188. Is there any harm in deleting all migrations, making an initial one, and then rake db:reset ?
  189. What's the best straight-to-the-point tutorial I can follow on the web?
  190. Where can I download( check-out ) Rails 3 for tests ?
  191. How can I start my rails app on a production server, that someone didn't configure it to start autom
  192. Should I use ruby 1.9 or ruby ee with rails3?
  193. How do you suggest I deal with polymorphic methods?
  194. How do I disable inline_errors on one formtastic block without touching any of the others?
  195. Is there an helper to find the page of an object with will_paginate ?
  196. Is it wise for me to have my models that are used for admin purposes put in a separate admin folder?
  197. Can someone give me a hand setting up RVM?
  198. What does find in require 'find' do?
  199. Does rcov work with Ruby 1.9.1, or is there something similar that does?
  200. Does rcov, or something like it, work with Ruby 1.9.1?
  201. Is there a recommended way to get a the title of a website from rails?
  202. If users have comments couldnt't shouldn't I be able to find comments by that users by doing: @user
  203. How to set a specific class on several option tags of select?
  204. Do you first learn ruby and only then rails, or some of us have started with rails right away?
  205. Is there a way of escaping some characters so that they are not capitalized when using "Titleize" m
  206. Is there some callback that I could register for, called when a constant is deleted?
  207. How can I tell rails that "format" is optional"?
  208. Where can I read about the difference between or and || ?
  209. If I want to include php inside a haml file could I use plaintext somehow?
  210. Would there be a way to use nesting with plaintext in haml?
  211. How can I prevent rails to render the hidden field for checkbox in front of the element?
  212. When I do a Product.find([1,3,x]) where no product record id exists for x I get an exception: Co
  213. Whats the proper way to overwrite a rails helper in a module?
  214. What is the latest rails stable version ?
  215. How can I define it inside the route.rb?
  216. When using the sentient_user gem (http://github.com/bokmann/sentient_user), how do I access current_
  217. Do any of the .bat files have a file with no extension with the same name?
  218. Is there any REST way of making URLs like /professors/:university_id/:professor_id (instead of /univ
  219. Is there anything simulator to Process.exit, that doesnt kill the hole process?
  220. Is there anyway to get `rake gems:install` to install rails instead of complaining that it doesn't e
  221. Whats the best way to find the mime-type of an uploaded file?
  222. Is there some trick I need to be aware of when wanting to use NOT IN with a finder condition?
  223. Should Rails be able to handle a file uploaded with a non-English filename?
  224. Is it possible to convert a hexdigest to a binary digest?
  225. Is there any way to use the jquery load function to just reload the entire dom into the page?
  226. Can I pass any prepared variables to the JS from the rails app?
  227. Is it possible to add a model association callback to an existing association?
  228. How can I see where a method is defined from within a ruby-debug session?
  229. Can someone help a <% form_for %> ?
  230. Is there an easy way to get the class name for a relation if all you know is the column name?
  231. Is there a way to change a column in a migration to remove a null => false constraint ?
  232. Is there a way to make it so activerecord tests don't use the mysql socket?
  233. Can the submit_tag carry a param of its own, that it will send?
  234. Is there a way to disable ActiveSupport 2.1 autoloading of missing constants?
  235. How can I have the structure of my development DB copied into my test DB for my rake tests?
  236. Are there any openid solutions out there that aren't tied to authliogic or some other auth system?
  237. Will that work with non-rails conforming tables in the DB?
  238. What is the best way to convert metal apps/endpoints to rack apps?
  239. Is there an easy way of changing how a column name looks like in an error. Like a user_id relation,
  240. Is there a way to wrap a rails app into a desktop package?
  241. How do I calculate string length for utf8 string in ruby 1.8?
  242. What's the best way to do app specific configuration in rails3?
  243. What a strange bug... any idea why my cookie :session_key might get prepended with a newline?
  244. If git tracks changes and it has a .gitignore line public/page_attachments/**/* shouldn't it keep th
  245. If so, what's the ideal way of doing nested forms in rails?
  246. Does paperclip create the storage folder I set the path for?
  247. Is there a way to access the submitted values in a validator?
  248. What's the currently favored library for testing filesystem manipulation?
  249. Is there some trick to setting up a dummy host and having redirect maintain that host?
  250. Is it possible to escape values when we use "select_all" to write pure SQL conditions ?