PDA

View Full Version : Ruby



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

  1. Is there an ActiveRecord callback for when a new model object is first saved successfully, like the
  2. Will Rails.root tell me what the nautilus filepath of my root dir is?
  3. What do people use for plugins to protect controller actions (ie: acl plugin)?
  4. Does anybody know what the .register! method does?
  5. What is the best way to do many to many forms. So I have products that can have many categories. H
  6. What do yall think of rails 3 compared to its predecessors?
  7. Where would I set the string encoding for a rails app to be UTF-8?
  8. Is it hard to do something like a friend stream kind of like what myspace has?
  9. Is it difficult to do something like a friend stream kind of like what myspace has?
  10. If ptd.due stores the value of 7, and I want to convert that to the corresponding month (July in thi
  11. If ptd.due stores the value of 7, and I want to convert that to the corresponding month (July in thi
  12. Is there a comparable Ruby statement to htmlentities in PHP?
  13. What's the best way to determine what country a request is coming from?
  14. Would someone mind taking a look at this controller?
  15. Is there one special requirement for install jruby in rvm ?
  16. How can I enable sth for a limited time?
  17. If you're trying to be RESTful and DRY, if you can say edit a model as an admin, or as the owner and
  18. Is there a way to get which ruby interpreter is running at runtime?
  19. Can someone please do me a faviour and do a "gem install ruby-ole" and then "rake gems:unpack GEM=ru
  20. Where would one have to look to use own forms but use Activescaffold for the listing only?
  21. Should I start coding my next release in 3.0 beta or 2.3?
  22. Is there any issue with fastcgi usage for rails 3.0.0beta4?
  23. What is the best rails-way to incorporate a test file into my unit tests?
  24. How can you find out where a method is defined?
  25. Is it possible to do single click in e-Texteditor instead of double click for opening project files?
  26. If you create an inventory item and image manually, then save the inventory item does the image get
  27. What's the best way to validate a value that can only be an integer from 0 to 5?
  28. If you create and save an inventory item, then create and save an image, then associate the two, tha
  29. How can I configure rails3 to not load active record?
  30. How do I write a ruby script that depends on the database / other models?
  31. Can you make a single model in AR which represents an aggregation of multiple tables?
  32. If you have identical actions in two different controllers, is there a good way to DRY that up?
  33. Is there anyway to tell rails to use "user" and not "users"?
  34. When do you need to use active record transactions?
  35. How do you do map.whatever "/path/to" but allow for multiple formats besides just HTML?
  36. What method do I call to get a URL to a static resource in the 'public' directory?
  37. Is it difficult to transition between rails 2.3.5 and rails 3?
  38. Can someone help me with a simple ruby question?
  39. Who votes to advise awesome_guest to use Rails 3 with 1.8.7 so he won't have any internal problems a
  40. When you make a model User, and say "has_many :addresses", what is the "has_many" anyways?
  41. Is it possible to have a rails application template add code to config/enironment.rb that's outside
  42. How do I get the first 100 characters of a string?
  43. What is the correct way to render XML with Rails?
  44. How can I get rails to think the format is different?
  45. What's the best way to have a route redirecting to another?
  46. How should I assing a session[:user_id] in spec/lib/session_spec.rb, when I want to make a spec-test
  47. How could I check if a DB Field is set or not?
  48. What do I use if I want to have @app_name=Configuration.find(1)[:appname] available in all actions o
  49. Isn't there a plugin which helps you get the update from 2.3 to 3 right?
  50. If I'd like to use the welcome layout for one action I do this right layout "welcome", :only => [:sh
  51. Is there a data type option for migrations such as :min => 1, :limit => 3?
  52. When using paperclip w/ Rails 3 beta4, do I have to use :multipart?
  53. How about `bundle exec rails s`?
  54. How can I add methods to Array for use in my view?
  55. Is there a way to `cd` from a ruby script?
  56. Is there any way to create a virtual column name for a model, so I can pull it with model.column_nam
  57. Does that @title always exist?
  58. How can I add date to a users session per rails dev console?
  59. What's standard practice for setting up an application wide header?
  60. Can I force a ruby version to boot the Rails console with?
  61. How is the form supposed to know it is supposed to submit to a different URL depending on what the u
  62. Whats the best way of attaching files in rails 3?
  63. How do I over-ride Rails pluralization?
  64. If I am starting a new project from scratch and need authentication and authorization, at what plugi
  65. How does one register a handler with Rails 3 for templates?
  66. Is there a way, with SASS, to get timestamps on URLs in stylesheets?
  67. How can I identify which template or controller action I'm in from within an erb template?
  68. Are there any rumors as to when rails 3 rc is going to drop?
  69. How would I create a CAPTCHA for Ruby on Rails?
  70. Does anybody know how to access the name of the action that the HTTP Request to the controller actio
  71. If I run :length.to_proc right into irb, it returns a balid proc.. but how does it know which object
  72. How do I make it so that when a user hits "back" on their browser, it makes them reload the page the
  73. Is it possible to specify the relation to a model when generating it?
  74. Isn't there some sort of way to make AJAX do highlighting like what I want to do?
  75. How do I mock `pwd` using RR mocking lib?
  76. How do I stop rails from converting my price to bigdecimal so I can work with the string the user en
  77. Do I have to do anything special to get Rspec to let me test my helpers?
  78. Is it possible to override, for example, + operator for base class, such as String in a scope of a
  79. Is there a better way to convert array of ASCII chars into an string than this: http://pastie.org/10
  80. Is it appropriate to change that in your model though?
  81. What's the best practice for having a remote link/form work with and without javascript?
  82. Is it like an if statement to see if the request was remote or not?
  83. What does this mean?
  84. Can I use Rails methods inside application.js?
  85. How do I enable logging on Rails 3 installs?
  86. What's the mechanism for installing a gem into vendor/cache?
  87. Is there a way to access the application name in an application template?
  88. Is it possible to set the failure message for something like should allow_value("whatever").for(:wha
  89. How can I apply a visual effect to a record (represented in a view) that im about to delete?
  90. What is good approach to load basic data like default users, seeds file or migration files ?
  91. What's wrong with what I suggested?
  92. If you use Rails Metal to stick a rack handler in somewhere, and you're still using the old mongrel+
  93. What replaces for example, script/server ?
  94. When programming, do you set a trailing newline at the end of the source file?
  95. Is there a way to change the :id key on map.resources these days?
  96. How do I compare created_at with a DateTime/Time object from the database :condition parameter in a
  97. Is there a way with formtastic to just get the input?
  98. When using Bundler, how can I make Rails pick a directory as a gem (not a installed gem), so that I
  99. What is the etiquette on dumping carts after a certain time has elapsed?
  100. Do ruby/rails models have a way to set default attributes, such that 'print @object' would sanely tr
  101. What is the {recommended,current,old} way to do asynchronous networking in ruby?
  102. Is it possible to have a model object that doesn't have a db object associated with it?
  103. Is there a ruby cms as featurerich and advanced as Django-CMS for ruby, preferably with rails?
  104. Does anybody here know what undefined method `model_name' for Login:Class means?
  105. Do homemade models that are not connected with a db table have to have custom made constructors or s
  106. Is it possible to set a session variable from javascript in rails?
  107. Is there a way to bulk delete records?
  108. If I do redirect_to :controller => "x", :action => "y", :notice => 'this is my notice', then wh
  109. Do you still the need has_many_polymorphs plugin to have many polymorphs in rails 2.3?
  110. What are the min cpu and mem requirements to run rubyonrails?
  111. Isn’t there a ruby string constructor that takes a length argument as well?
  112. If you sort an associative array of times by minutes, ie 30 minutes => 30, 90 minutes => 90, 2 hours
  113. Should I do this through Roles on a User model, or have separate models for Admins and Clients?
  114. Is there usually a helper url for deleting objects?
  115. How am I supposed to handle that?
  116. Is there any S3 server (Park Place style) packed in a gem or something easier to integrate with a ra
  117. If I want to set up some kind of polling notification system, how can I limit the number of requests
  118. Is there a nice simple algorithm for finding a random "thing" from a weighted set of "things", where
  119. Is there a difference between using == or === in ruby?
  120. How can I activate a process in a model just by clicking some "button" in the view?
  121. Do view helpers, such as link_to, sanitize the input you give them?
  122. Can someone tell me how to run multiple ruby scripts in order syncronously?
  123. Did railscasts do a screencast on making 'fancy' 404 screens?
  124. Whats the recommended way to do asynchronous networking in ruby?
  125. When using a lightbox popup is there a way to make the back button affect just the lightbox when it
  126. Is it possible to get the binding a method has been called from?
  127. Is there a way to access the string entered for a Date field on an active record?
  128. Do I actually need to restart the console every time I update a lib file?
  129. Is there a way to do it thats faster then map {|x| number_to_human_size(x) } ?
  130. Is there a way to temporarily disable caching for one test and leave it enabled for another (I want
  131. Is there a quick way to migrate a bunch of gems over to a new ruby install?
  132. Is it possible use autotest outta Rails, only in command line ?
  133. What exactly is f.error_messages?
  134. Would it look something like this?
  135. Is the use of [] as a class factory method (ie Dir[]) falling out of style?
  136. Did there used to be shortcut to create an empty array aside from = [] or did I dream that?
  137. Is there a standard way to have a controller method respond with with a partial for AJAX requests an
  138. Is there some easy way to split up array for display in rows in a template?
  139. Can ruby methods be given ruby keywords as names?
  140. If I have two rails app sharing the same database, is there a way to share certain models between th
  141. Does it cause any problems to have a dummy model with some common code, and no associated table, and
  142. If you've got a git pull that'll overwrite something with the merge so git pull aborts, is there an
  143. When I'm using map.resources ... is there a way to instead of the id, another attribute is to be use
  144. Is there a normal way of getting past the fact that an object created with ModelName.new(params[:mod
  145. Is it known that ruby-debug is clearing out ARGV, basically killing all possible generators?
  146. How do I make it so I find the most recent object in a collection that belongs to another object?
  147. Did you , well I don't know if it's in rails three, but did you comment out the production variable?
  148. If 'Site rescue nil' doesn't return nil, then defined?
  149. If you want to share a database between two rails apps, what would be the 'rails' way to share speci
  150. Can somebody make this into an Rails 2.3.5 AR find?
  151. Whats the best way to do indirect variable access in ruby?
  152. Is it a mixin or does one inherit the other or is it some other mechanism?
  153. Is it possible to organize translations so that I can access them hierarchically?
  154. How do I use form_for to make a form that will method=delete something?
  155. How do I manually link_to the update method of a RESTful controller?
  156. Can I limit the size of binary files being inserted into the database using the :length { :maximum =
  157. Is there any functions in Rails migration that can update existing tables with new rows?
  158. How do you check for whether a row exists for a nested resource?
  159. Did you install 1.9.2 after you'd gotten the rails gem?
  160. Is there perhaps just a way to query mysql directly to solve my problem like php's mysql_connect, my
  161. Is there anything I need to require in a standard model to be able to use the named_scope method?
  162. Is there a regex class that's like b for word boundary, but treats punctuation as words as well?
  163. What is it that I must do to transform [1,2,3,4,5,6] to [[1,2],[3,4],[5,6]] ?
  164. Do I need to use scope instead of named_scope when I include ActiveRecord::NamedScope into my model?
  165. If I want to create a network connection to a resource and share it among everything while handling
  166. Do you guys think its a bad design if I implement a three step event registration where the first st
  167. Do you know if there's any way to get around that?
  168. Is there a way to select just one record with arel without call .first on something, then?
  169. How should I go about creating the following sql using ARel?
  170. How do I make rails 3.0.0.beta4 use rack 1.2.1?
  171. What XML parser does Rails use by default?
  172. What api in freebsd should one use to get all of the names?
  173. How can I tell my apache to display the project in "development-mode" so I get some error-messages?
  174. Does ActiveRecord already generate a hash off all attributes?
  175. Does anybody got an idea about why "StreetAddress.find(1, :params => { :person_id => 1 }) " doesn't
  176. Is there an api.rubyonrails.org equivalent for Rails 3?
  177. Can I write this little snippet a better way?
  178. Is it logical to assume that if I want to build web-based apps with Ruby on Rails, I should start wi
  179. Is there a decent gem or plugin available for managing breadcrumbs?
  180. Can I do this?
  181. Are there circumstances under which a form_for tag would generate the inputs but not the form tag it
  182. What's the easiest way to tell if a number is negative?
  183. What does rails have in the way of modals?
  184. If Ihave a listings type app. And I want some listings to be featured. Is it better to just put a fe
  185. If I pass a block to an asynchronous operation, is the usual way to block in the invoking thread to
  186. How can I specify on the command line which version of rails I want to use?
  187. When building a hash, is there a way to have one value aware of another key's value that has already
  188. Whats the best way to set a unique id on the body tag in application.html.erb. define a variable in
  189. Do I need to add a route to handle photos as such?
  190. When I have a t.references field in my migration, how do I explicitly set that when creating a new o
  191. Can I include more than one :object in a map?
  192. Is there a way to use something like fixtures without test-driven development?
  193. When does the rails 3 come to stores near me?
  194. How do I change the prototype in rails3 to jquery?
  195. Is there a cute way to get the common prefix of an Array of Strings?
  196. Is it possible to turn an openstruct back into a hash?
  197. Whats the best way to register users / authentication?
  198. Did yall look at http://www.techtoolblog.com/archives/ruby-php-aspnet-job-comparison ?
  199. Whats the best method to encrypt a password?
  200. What stable version of ruby on rails?
  201. How about this method?
  202. Would you put that on my account please?
  203. If a person doesn't know their password how can recovering it be better for them than resetting it?
  204. How do I get form_for to set a parameter different from the class of the object?
  205. Is there anyway to tell bundler where to install gems?
  206. How toimplement more than one submit button on the from to go to a different action?
  207. When running bundle install how do you get it to exclude your groups?
  208. What's the best way to implement a dashboard/logging ability. So users can see what other users with
  209. What's the best way to implement a dashboard/logging ability. So users can see what other users with
  210. How should I specify public/uploads/tmp within Dir.new() from within a rake task?
  211. What is the best way to pass an id of a model to another models new page?
  212. Is there a shorter way to write this: element = 1; a = {}; if a.has_key?
  213. What do you need to know in paperclip?
  214. If I type "gem install padrino" for instance and I already have the latest version of padrino instal
  215. If I have a virtual attribute, is it possible to include in query results?
  216. Whats the best way to increment a value in a table by 1 instead of adding a new record?
  217. How do I tell rails to never run a particular migration?
  218. Is there a way, that I can load this token inside another site?
  219. How can I add each decimal value of a str, so that the sum is returned?
  220. Can I convert an ajax call that will update only a div to a reloading call?
  221. Can you guys suggest a website that can guide me through using rails master branch as my dev "rails"
  222. What's the most up to date postgresql driver for ruby ?
  223. Is there a better way to share my code than gem serve?
  224. Is there issues with errors with Rails 3 beta 4 ?
  225. Is there a way within ruby to return a proxy object in a method that defines a given method that wil
  226. How does the India and US works compare to each other, in terms of quality?
  227. What's the best platform to use as a basis for a webserver that relies heavily on rails 3?
  228. Is there anything special I have to do when testing an update method?
  229. How do I test for the json rendered by my controller?
  230. Is there an easy way to search through an array where each object is itself an array and using the f
  231. Is there a way to customize how array.index searches through an array?
  232. How much RAM could the server possibly take on my computer?
  233. If I do redirect_to :controller => 'moverang', :action => 'search_providers', :locals => {:next_type
  234. Is that still the way to load code like that ?
  235. Is there any chance at all of getting Rails 3 beta working on Ruby 1.8.6?
  236. Is there a way to check whether a contect_for was declared or not?
  237. Do you know what route I neet to put in routes, so I can call a method that don't have a view to ren
  238. Is there a way to parse ruby code to see if it's valid, without interpreting it?
  239. Will rspec 1.3.0 work with rails3?
  240. Can someone have a peek at this?
  241. Does it make me weird that I'm 31 and I'm netflixing the avatar: the last airbender cartoon?
  242. If you have a form_for inside another form_for, haml seems to break off the outer form. so if you h
  243. What's the best way to check everything being submitted with a form?
  244. Is there a way to see everything passed in a form submit?
  245. Is there any way to prevent caches_action from prepending 'views/' to the beginning of cache_path ?
  246. How to check if will_paginate function will result in empty string (1 page)?
  247. Is there a way to see how much data my apache2 server is serving?
  248. Is there any way to use restful routes but tell it not to route the standard actions?
  249. What callbacks, if any, exist for delayed_job so I can update the view when the job is complete?
  250. Is there a way to force it to use consecutive numbers for id?