PDA

View Full Version : Ruby



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

  1. Can I just take that out to http{} so it will use as default values?
  2. Does rails have a nice way of setting unique ids for new_model forms generated by FormHelpers?
  3. What is the difference between extend and include in a class?
  4. How do I convert '062110' into a Date object June 21, 2010?
  5. How may I check if current user has access to some action in view?
  6. What is the most efficient method for seeing if the user is on a specific page?
  7. When I'm using a file_field in a multipart form to upload a file, when I go to read the contents of
  8. What is the best way to handle per controller/action javascript and css?
  9. Is there any built-in method to iterate over all subsets of a set or array?
  10. Is there anyway to tell the database to store something as a binary, and not attempt to encode it to
  11. How do I list the class methods on a class in ruby?
  12. Is there anyway to see what's in the test db well rspec is running ?
  13. Is there a way to have it use product.id instead of using product.stat_id?
  14. If I have a method like: def blah; end .. id like to have it so sometimes I pass a block, I do one
  15. How can I reference that block that was passed without having to define: def blah(&block); ...; end
  16. Is there a way to dynamially alter the routes without restarting the web server?
  17. How do I get the rspec gem to install in the right directory on my Mac (10.6)?
  18. Should I even be using 1.8.7?
  19. Can I use rails with ruby 1.9?
  20. Is there a secret to parsing a file in seeds.rb that I'm not aware of?
  21. Is there a way to backdate timestamps upon creation?
  22. Can I not use :default => Time.now in my migration?
  23. How may I rename a standard action name to something else?
  24. What are the linux environment variables re: standard library location?
  25. Is there any Rails plugins to make it easier to translate model data?
  26. If /public/foo/bar exists, then that's served *instead of* invoking the route that would normally ha
  27. Is there a way to trigger default 404 handling from a controller method?
  28. Is it possible to get a list of associations for a model?
  29. How can I make a certain parameter which is available to my view (a .html.erb file) available to a j
  30. Is there a sane way to take an attribute hash and just dump it into a table using AR with no validat
  31. What SQL is active record actually generating when you attempt to insert the new record?
  32. What is the best way to use a word directly after the program name?
  33. Is there a way to get capistrano to read the local .git/config file where I have put in custom recei
  34. Is there a way in stylesheet_include_tag() to specify the media type?
  35. If not, is block.call(variable) the only way to have them?
  36. Is there any rails validation or would I have to just write my own custom validation?
  37. What's the simplest way inside a rails app to check how many delayed_job processes are running?
  38. Is ruby 1.9 compatible with rails?
  39. Is there any reason not to start writing all my apps using rails 3?
  40. Can you create a new table using active record, in a rails controller?
  41. When that happens, its creating an anonymous singleton class thats patched in directly above Moo in
  42. If I call user.save and user has an array of products, and I added a new product object to that arra
  43. Do I have to make further adjustments after switching between rubys in order to run compatible rails
  44. What's the best method to group results in view based on Date.today.beginning_of_week, Date.today.2.
  45. Is the code implying that I need a path to the user?
  46. Is there an easy way to log errors in rails?
  47. Can I get AR 2.3 to stick to having a single raw_connection object across requests?
  48. When you stub an object, does that stub it out for every method call or just when you explicitly cal
  49. How do I install the rtfm thing everyone keeps telling me about?
  50. What is the correct way to call a method name of a variable from a variable?
  51. Does 1.9.1's timeout library work the same as 1.8?
  52. Is ruby 1.9.1 suitable for use with the latest rails 2.x?
  53. How to add odbc support to ruby (dbi gem) ?
  54. How to list all platforms that gem will work in ?
  55. If I had old visual studio 2008 project that was compiled for mswin32 platform.. will I be able to r
  56. Can I somehow tell rails that not id is the index but idx?
  57. How do I get my method from a c-extension run in parallel?
  58. Is there a way to set up an association to be ordered through another association?
  59. Is there a way to change the default media type on stylesheet_link_tag includes?
  60. If I have a nested model in a form do I have to update_attributes first for the "contained" model an
  61. Is there a particular reason why removing a password field from a db during migration is a GOOD thin
  62. How can I create a new instance of a model based on params and find out whether it is valid?
  63. If I am making a form, what path should I be using?
  64. Is it possible to set values from a Hash to a Model?
  65. How do you go down in a range in ruby?
  66. Is there some other lightweight ruby gem that can be used for sql queries (besides dbi) ?
  67. Is it posible to discover if ruby method is implemented in ruby or if it is native extention invocat
  68. What's the easiest way to run an app on rails edge?
  69. What do I use for a route which matches 404's?
  70. How do you suppress deprecation warnings when running cucumber?
  71. Is there anything like :after_save, but that gets triggered when a HABTM association changes?
  72. If a Site has_many Sections and a Section has_many Pages, can I easily set up an association so that
  73. If not, how do I call the update method of controller B in a method in Controller A?
  74. Is there any way to detect the protocol of a page via rails, similar to document.location.protocol i
  75. If I have a bitflag-based ban system (for different site features), and I want to display all the fe
  76. How do I get a hour to use with datetime_select as a default value ?
  77. Is there a way to readily get the user agent of a browser in a rails controller action?
  78. Is there a rails helper that turns strings like "Latest News" into "latest_news" ?
  79. If I'm creating an Order, which has a Customer I must choose, but there are 2000000 customers availa
  80. What you are saying is: I cannot have just 1 page for 1 form, making available all options to user,
  81. If I name a multitude of classes namespaced to a module Foo, is there a way of dynamically calling
  82. How do you use respond with and also not render a layout?
  83. Do any of you know how to get paperclips attachment loaded in the edit page?
  84. Is there not a way to have this automatic for xmlhttprequest?
  85. When using lightview, how can I use an object or an embed tag such that I can have flash displayed i
  86. If you have eg a Policy belongs_to :user, if I'm drawing a form for policy, should I specify that f
  87. Is it possible to use devise_facebook_connectable with an existing app that has already been using d
  88. What's the best/cleanest technique to add a command to the toplevel?
  89. What Rights-Roles plugin can you suggest?
  90. Is there a reason nobody uses the default test system in rails?
  91. Will that method get executed automatically?
  92. Is it really necessary to convert to XML and then extract from the XML?
  93. How can I execute an external command with ruby and then get that command's stdout output?
  94. Does thin 1.2.5 have problems with ruby1.9.1 / rubygems 1.3.7?
  95. Is there any way to use the create_table :blabla do |t| syntax when adding a bunch of fields to an a
  96. If I create the controller, should I just do the actions and then redirect back to the album or some
  97. Is there not a way to delete the photo without creating a controller for Photos?
  98. Is it possible for you to have a photo that doesn't have an album?
  99. Does rails have the equivalent of a .cgi file to call via an ajax call?
  100. How can I use actionwebservice to create a SOAP server using an existing WSDL?
  101. How can I call A#foo as if B#foo?
  102. Is it possible retrieve a suitable hash from a model that has subhashes for associated models?
  103. How do you do self referential habtm so both sides can see the other?
  104. What is this, back to the future week?
  105. How can I force re-run of a migration which rails thinks it has already run?
  106. How do I isolate the first committee and the last committee in the list?
  107. If I've got this line in my application.rb, rails3beta4, config.middleware.use ExceptionNotifier, wh
  108. How do I write a spec that checks that a view was rendered without any rails errors/exceptions?
  109. When writing tests to check creation/validation and etc. do you go with build or create for your fac
  110. If I want to access /stylesheet/folder/file.css do I then need to add a route to it?
  111. When is appromiated date of final release of rails 3 ?
  112. How do I go about getting multiple rails apps to share login sessions?
  113. What's the drop down for a form method in rails 3?
  114. What is the cleanest way to go about calling a helper method from a controller in Rails3?
  115. Is there an easy way to give permission to :all with declarative authorization, say for admins?
  116. How can I tell if a screencast is covering rails 2 or rails 1?
  117. When writing an API for an iPhone app to use, should I still test it with cucumber?
  118. Is there a new controller instance created for each request?
  119. How can I render an IO stream to a user and stay on the same page?
  120. Will it be hard to make existing plugins work with rails 3 ?
  121. Will it be hard to make every single plugin work?
  122. If my database is named "applicants", how do I distinguish between type1_applicants and type2_applic
  123. Where is the differerence between singleton class or a normal class using class variables and method
  124. If my app requires gems that are not installed on the production server, do I need to install them m
  125. Is there any easy way of formatting dates in some calendar system other than Gregorian?
  126. How do I write a functional test for an uploader that creates a random slug for the uploaded item, a
  127. Is there no way to get at the currently active parent instance from the child?
  128. Would there be a way to do a gsub on a render partial to have it remove r n ?
  129. How can I stub! in Cucumber test?
  130. Is it possible to stub methods in gems with mocha?
  131. How do I filter some items out from Image.paginate?
  132. Is there a good tutorial on the use of to_sentence ?
  133. If I have an IO stream that contains csv, how do I get it to the user in a download form?
  134. Is there any way to see what is loaded when the rails app starts?
  135. Is there a way to include a helper for a specific action only, instead of the whole controller?
  136. How do I use variables inside link_to when I don't need the string?
  137. Is there any good view template for editing an awsome_nested_set-based model?
  138. Whats the difference between "rake gems:unpack" and "rake rails:freeze:gems"?
  139. Is there a plugin or built in way of declaratively checking for a list of params/cookies/etc and log
  140. Is this the correct command to be issuing to install this script ?
  141. Is this new rubygems behavior?
  142. If I have the route: "map.artist_edit 'artist/edit/:id',:controller => "artists", :action => "edit"
  143. Are there any other template engines apart from erb and haml ?
  144. Is it possible to test outgoing connections in javascript with capybara like tool with selenium?
  145. What's the javascript event that gets fired when scrolled to bottom?
  146. Does named_scope have any sort of group by method?
  147. What are the tools that could be used to test ajax communication with rspec, selenium, and ...?
  148. Is there a way to group certain values from a column and NOT group the other values in the table tog
  149. How does savage beast do if you use auth logic instead of restful authentication?
  150. Is there a pattern for using form_remote_tag to create associated objects for an object that is stil
  151. What stops you from first saving the record and then adding images to it in one request?
  152. Is there a way to check wether or not an application runs with mysql or postgresql?
  153. Can you fix it at the database level if you are intent on using AR?
  154. What to use in rails 2.3.5 to get functionality of rails_xss (which is for 2.3.8)?
  155. Can anybody else answer that if I have to assign two sides in order to have a one-to-one mapping, or
  156. Is there a decent quick and dirty way to generate a random password in rails?
  157. Is attempting to add Numeric#divisor?
  158. If someone would guess which is the prefered database with rails in production?
  159. Is there a walkthrough somone cold recommend to help a newbie install ruby on fedora?
  160. How is it possible that you have a Linux distro without gcc?
  161. What is the fastest way to run a RoR application nowadays?
  162. If I remove the second parameter from initialize, then it works fine, any ideas?
  163. Is there a ruby method that turns a string like 'String' into an object String?
  164. If I have class methods in my Order model with the same names as "view" params in my orders paths, c
  165. Is there a way to turn params[:view] back into "code" instead of a string?
  166. Is there some sort of comment system/plug in for rails other than the acts_as_commentable plugin?
  167. Is Digest::SHA1.hexdigest([Time.now,rand].join) a good way to generate unique tokens?
  168. How do I do line 6 in rails?
  169. What's the proper way of disallowing users from accessing certain pages?
  170. Can someone look at this and tell what I am doing wrong?
  171. When implementing RESTful routes, inside the routes.rb, if I have "map.resources :products", is it c
  172. If I have a partial that tries to redirect the user, how do I have it send the browser to the chosen
  173. Is it possible to define an interface in ruby?
  174. Is there an equivalent of instanceof in ruby?
  175. Is there a good 2d graphics lib for ruby?
  176. Will it load this image in the clients memory?
  177. Is it an admin, a user or unregistered users?
  178. If I keep resources nested only 1 level deep (as convention is) how can I walk back up the chain, wh
  179. Is it possible to use String.gsub to replace an array of possible words for another?
  180. If I define a method in my model called 'password' and have it return whatever, why do I get the fol
  181. How do I set Socket.do_not_reverse_lookup to "ignore" SSL/TLS hostname mismatch errors in ActionMail
  182. How to deal if I want to use *pessimitic lock* in Activerecord callback ?
  183. Is there any more refactored way to do this with rails3 activerecord?
  184. Is there any way to make actionmailer print full log to somewhere?
  185. How do I stub @order.charge! to a) return false and b) assign errors to @order?
  186. If you're not using a lot of 3rd-party gems maybe you could use rails 3?
  187. Is there a variant on collection_select that doesn't require object/method ?
  188. What's the right way to use :conditions to get "group IN ('x'.'y'.'z')" from ['x','y','z'] in condit
  189. If I want to check if a record exist and return the value, before saving an element, I have to write
  190. Is there any way of checking if a time is within a certen time span?
  191. Is there an iphone app that will play a dialing sound?
  192. Is there a way to manually add attributes to some nodes when using Hash#to_xml ?
  193. Is there a built-in method for getting the next value from a sequence ?
  194. Is there a rails built-in to retrieve the next value in a defined sequence?
  195. Is there a way to render an image directly from a controller and not bring up its relative view page
  196. If it wasn't both browsers I could blame caching of the browsers. Is there something special done i
  197. How can I get rails to stop processing my string as a string?
  198. Is there any way to include the result of a .select("avg(column) AS something") query in the returne
  199. Can someone helpe me with a simple partial render?
  200. How can I select a union without reverting to raw arel and hence loose the possibility to scope the
  201. How does the default :url for form_for get generated?
  202. If I've got a class Foo and a class Namespaced::Foo, is there some other way I'm supposed to refer t
  203. What is going on here?
  204. Isn't there some AR method to query a single field of a table (model) and return it as an array?
  205. How do I prevent a controller from crashing if it receives a nill id?
  206. Is the config/deploy.rb a part of standard Rails, or used only by Capistrano?
  207. Whats the best instant rails package for windows?
  208. Should I makea controller that renders JS, and make a route with a path /javascript/my_custom_js.js
  209. Is it becouse im tryng to access it in a plugin?
  210. How do I write a resources collection route to have pretty-urls containing the page for pagination?
  211. Can I set up an instance to accept a block?
  212. How do I make rails return a uid (i'm generating inside the model) back to a curl post request?
  213. How do I get the platform's environment path (e.g., $PATH) separator in Ruby?
  214. If I want to set up a post to the action "preview_parse" in my admin/pages controller, how would the
  215. Is there a way to do an assignment-triggered save that will throw an ActiveRecord::RecordInvalid exc
  216. Is it possible to create virtual attributes with alias or an alias_ method?
  217. If a Section has_many Pages through a polymorphic association, is there a way to use validates_uniqu
  218. How does rails know if a request came in via ssl or not?
  219. Do I just do url_for ... ; url.gsub! /https:/ "http:" and vice versa?
  220. What is wrong with my regex to count the number of capitalized words?
  221. How can you copy a partial array?
  222. If I have a link_to('foo','bar.html') what's a good way to add a period after?
  223. What's wrong with this code: <%= link_to "Delete", {:controller=>"admin/lessons/", :action => "destr
  224. Is it a good idea to buy beta-version of aigile 4rd edition?
  225. Can I check if an img src exists in rails views?
  226. What's the best continuous integration suite for rails now-a-days?
  227. Is there a generic way to refer to a "self." method, intra-module-wise ?
  228. Would "Graduation Year" be a t.datetime in my migration?
  229. Is there any reason why a resource defined in my routes.rb would create the proper new_object_urls a
  230. Is it possible to remove a module after it has been included into a class?
  231. Can you put up a gist of your controller?
  232. Is there a way of forcing will_paginate to work?
  233. How would I get the subdomain as a string from within the controller?
  234. Should I include the Rails environment in my Rake file if the only thing it needs is to run one find
  235. If I start at some random offset, say 180, and want to do something after one resolution, how do I b
  236. Is there any way to change the default fmt used by Date.parse (from m/d/y to d/m/y) or do I just nee
  237. Is there a way to use url_for and pass query parameters?
  238. If I have some html.erb that looks similar to this: <p> <%=h event.foo %> </p> How could I render th
  239. If I want my app to serve images from another server, like img.domain.com, is there any built in fun
  240. What is the quickest / least db intensive have to list out all of your users listed alphabetically?
  241. Is there any downside to upgrading to rails 3?
  242. Is there a special way to make my rails log "colorized" in my OS X Terminal?
  243. Are there any good articles on sortable lists in rails?
  244. Are there any gotchas with ModelName.connection.create_table in test mode?
  245. If you read a lot of code (esp. in diff languages) you can more easily spot x % y == 0 and figure ou
  246. If x % 2 == 0; is not ruby like, meanwhile x.even?
  247. What does it mean that Factory.stub returns an object with its attributes stubbed out?
  248. Do I need to recompile ruby with some options or do I need a gem for that?
  249. How can I save without callbacks in an after_save callback?
  250. Is there any easy way to order results by association's attribute?