View Full Version : Ruby
Pages : 1 2
[
3]
4 5 6 7 8 9 10 11 12
- If choosing between ruby 1.9s, is it recommended to use 1.9.1 or 1.9.2?
- What's the cool way to create a new skeleton project with rspec and cucumber baked in?
- Does Ruby provide any standard facilities to somehow convert CP437 data to UTF-8?
- What about if I have "Mr INDERJIT SINGH (Ang Mo Kio)" and I want to remove "(Ang Mo Kio)" so that I
- What does writeInt() do in Java?
- Is there anything I can do to get a nice pp-style format for printing to file?
- What would be the optimal way to download a file from a URL and save it locally in a different name?
- Are there some special implications of using "nil" as a key in a hash?
- What other self should there be?
- Is there a way to check if the server closed my TCPSocket?
- Is logger the best option for writing output to a file?
- Is that probably the best and easiest way to get a nice ruby install ?
- Isn't it kind of lame that there is no way to define a utility method that's available everywhere in
- What can I guard the File.open call with so it won't fail?
- Is there a way to create a temporary directory in the filesystem in ruby?
- Is there a skeleton project that has already integrated devise and omniauth?
- Does ruby have a function to normalize path names?
- Is there a method to check whether a class inherits another one?
- Whats the best way to dynamically add an instance method to a specific object and not all objects of
- Is there a way to append values to existing keys on a hash from another hash?
- Can I use update_all with a variable?
- Is there any way to make an object out of scope?
- Is Ruby 1.9 the preferred production version these days?
- What's the general strategy for library developers -- support 1.8 and 1.9 out of one source tree, or
- Are there any guides on how to bootstrap a project / gem?
- Is there such a concept as a thread-local instance variable?
- How I can get the key name (:error) of my hash {:error=>:cant_ship_out_of_stock} and tranform to_s ?
- Is there away to set the before_filter to apply to whole controllers instead of just actions?
- Can I use update_all with a variable?
- How do I create an array with x number of specific objects?
- What's Rails' 2.3.8 equivelant to match '/media/*dragonfly', :to => Dragonfly[:images] ?
- How can I call a controller method from a model method?
- Is autotest meant to only get "triggered" when I save my spec file?
- Whats the good way to initialize an object of a symbol?
- What is the latest greatest tool for deploying rails 3 applications?
- What ActiveModel callback can I use to execute a method before validation on create ?
- Where in a scaffold would I direct a 'post' request from my ajax?
- Is there something similar to Memoize, but with a possibility to cache by a limited set of method ar
- How do I set the default time zone for my rails app?
- How can I check whether a method accepts a block or not?
- Can someone point me at a rtfm or explain the differences between %x and sh() ?
- What's the best way to profile memory usage for a rails app?
- What is best practices regarding when I have a show method that tries to return a product that doesn
- How do I set the user_id field in my projects table from the controller create action?
- When the array is pretty large, #each seems to consume a lot of memory. I suppose it's because #eac
- If the element is div id steel inside div id resourcebar it's #resourcebar #steel right?
- What's a good way to add runtime commands to a server?
- Can you pipe stuff to stdin on a shell command call from ruby?
- Is there any really simple library, for image manip?
- Is there any good documentation on putting conditions on queries with included tables combined with
- Is there a way I can figure out if a VALUE I have has already been garbage collected?
- Is there an easy way to get the full path name of the Ruby current script, under Mac OS X?
- If I have nested 'each' loops, how can I call 'next' on the outer loop from the inner loop?
- Should I really try to remove 1.9.0, or can I pull it off simply symlinking the proper version to /u
- What do you need to di in your app to ensure that images and scripts and stuff are loaded over https
- Can I have non-model fields in a form?
- Is there such a thing as an "interactive step through" debugger for ruby so that I can e.g. set brea
- Is there a win32-api gem for ruby 1.9?
- Is there such a thing as an "interactive step through" debugger for ruby/rails so that I can e.g. se
- If I change the time zone preferences for active record, is it really going to fix anything?
- What is the fastest way to sort a value referencing an object?
- Is there a 1.9 friendly windows ruby installer?
- Can someone help me make sense of this?
- Is it possible to add a route from outside of routes.rb?
- Is there a way to check whether a string can be represented as ascii or not?
- When I use update_attribute(), does rails generate a sql statement which only updates that one colum
- Does .update_attribute call .save on the object?
- How do I build an existing model based on a hash variable?
- How do I bind local variables to a block?
- What was the method to correctly get the length of a UTF-8 string?
- Is there any way to change the default ID assigned by fields inside form_for?
- How do I force a string to html_safe so haml doesn't escape it?
- Is there any way to pass arguments to a SpecTask?
- Is there a better way to write this if statement ?
- How do I do platform specific dependencies in rubygems?
- When using ajax and javascript in rails what is it called when you still allow for users without js
- What part of "After an entire day, I can compile the source fine, but no matter what I do, "no such
- Is it a good practice to separate sql code from the main logic of an app, ie, move the sql code some
- How can I check in code whether Model Post :has_many :comments?
- Is there a nice pre-built rails plugin for making a calendar that lets you select dates?
- When installing gems; should I use sudo gem install ;or just gem install?
- Do you want the installed gems to be available to all users, or just the current user?
- What's the best/easiest way to run a raw sql command in rails3?
- Is it possible to retrive the amount of declared arguments for a class method?
- Should I attempt to do some ruby?
- Is there a way I could make a "link_to" url post a form ?
- What ruby version do you try that on?
- Is it possible to get the file name of the file that is being uploaded though file_filed?
- Is there any way, inside a regex, to get the string being matched against?
- How do I get the cancan access denied page to redirect to root?
- If I have two has_manys. User.has_many :jobs, User.has_many :side_jobs that both point at a given c
- How can I make the capture() method avalable I my views?
- How can I make a diff utility in ruby ?
- How can I make the capture() method avalable I my views?
- How would I specify more than one borough for a single volunteer in the database then?
- Is there anyway, in C-Ruby, to write a function that returns a value without a name?
- Do you have experience in languages like Haskell, ML, J, R, Lisp, Clojure, Scala, etc?
- How can I record in a log file everything that my program prints?
- If a have a case/when with a few names as the whens... can I call a when from another when?
- Do you just want case x; when :a, :b; something; else; somethingelse; end ?
- Will Ruby honestly not work outside of RVM nowadays?
- Should mocking work in cucumber?
- Does this look fine if I want to show the image if column[:is_primary_key] returns 1?
- Is there a 'lint' program for ruby files?
- How about not being lazy fucks, pulling your head out of the 70's, and typing out "format"?
- Is there anything I need to install to be able to do a "gem yank" ?
- Is there any really simple clean way to remove x characters from the beginning of a string?
- What's the problem with tgz and windows?
- Is there a good vim book?
- Is there a way of seeing an item stored in actioncache?
- How is it that Digest::MD5.hexdigest("yoyo") and Digest::MD5.digest("yoyo"), represent the same hash
- Is it possible to somehow store strings in a more efficient type that requires fewer bytes?
- If I set a variable to nil the garbage collector should take care of cleaning the trash, right?
- Did anybody get disappointed after a while coding with rails ?
- Did something change in rails 3 routing?
- Is there a way to save the result of rake rails:upgrade:check ?
- Is there a way to have local variables available to you when you include a file in irb?
- Can someone discuss with me, the general process of displaying only sections of a data type (via a c
- Is there a gem that will let you 'twitter' from the command line?
- Is there a ruby operator that's num*10^x?
- What's a good way to handle exceptions for xhr requests?
- What am I doing wrong and or how do I fix it?
- Where can I find a list of win32 dll's and the methods they contain?
- Can I add a begin/rescue/raise so if my app fails at some point, go back to begin part?
- How can I string.capitalize the first letter of each word in a string?
- Does anybody know of any tutorials for ActiveMerchant and Rails 3?
- How do I test to see if a model has an attribute?
- Do I need to create the model files by hand?
- Is there a way to remove a gem and all its deps?
- Do Ruby's built-in regexes don't even support lookbehind?
- How to create a fork, read its output and wait until it's terminated/finished executing?
- Can someone help me out with the issue "no such file to load -- zlib" I am getting trying to install
- Is there any way to invoke an after_filter when using caches_action?
- Isn't there something to do byte unstuffing in a network packet?
- What is a good tool in ruby for generating a pdf from html?
- Is it because I specify a range for k?
- Is there a clever way to do something like File.open("dest", "w"){|outf| ...}, but skip the open and
- If I had foo = "String" how could I make bar by an instance of the class foo refers to ?
- Does ActiveRecord have a facility for translating multiple Insert statements into a single "batch" i
- If I am using the ruby script/generate scaffold command, what would the type of a field be if it con
- If I'm trying to list my products alphabetically and I want to include a header/title for each lette
- Is it viable to try and run trac and svn as the sever and that svn-git stuff for development?
- If I script/destroy both model and controller for a class, I can re-create it no problem, yes?
- Is there a method like ``, which returns the STDOUT output, but that works like system()?
- What's the difference between "and" and "&&"?
- Is there any other char beside () that I can use to have an 'or' on regexp?
- Is there a way I can play with views for notifiers in the browser to perfect them, instead of emaili
- What are the terms for all command line arguments?
- Is there, within a gem's code, a way to output the directory from which the gem is contained?
- Did I start that irb with the system gem, my local sandbox, or some other location?
- How do I get a model's string just like it comes out in the console, with r n?
- If I lock! right after find_or_create in a transaction, doesn't that provide a narrow window for a r
- How do I update all the attributes of a model object without saving it, from a hash containing the k
- What do you guys use for backups?
- Where should run_me be defined?
- How would I.. have one script listen for events and spawn threads (i have this working) and then hav
- Is there a better way than having to use an unless statement for possible nil values?
- Is there a big difference between redis and redis-rb gems?
- Can I access my app's models in a rake task somehow?
- If I want to print the time in my view, should I then create a new time object in the controller and
- Is there a way to load the rails environment in my cron script?
- Is there a way to add an onload to <body> in a specific page without having to create a new layout?
- How do you guys like this structure for configuration of jobs: http://pastie.org/999041 ?
- Are all helpers in app/helpers available to all the views?
- Do anmed scopes let you use a method or just column names?
- Is there a way to get Mail to read from a filecontent instead of passing a filename ?
- Is there a possibility to do a content_for(:js) after all was rendered?
- What is called when you redirect someone back to the previous page after an error and their temp for
- What's the easiest way to route admin.domain.com/ to a different controller than x.domain.com/?
- Is there a way to fetch an association (:include) when searching with thinking sphinx?
- If I have an song object that contains a lot of songs, is there any easy to update a specified field
- Is there a way for rails to not log (to development.log) calls to a specific method?
- Should I make a secondary table with one column for paperclip?
- What's the rails 3 way of linking to a subdomain?
- What's the best way to not repeat myself between validates_inclusion_of and the options for a select
- Are generators broken in beta4?
- Is there a GUI sql management package for ubuntu?
- What would be the cleanest way to handle an error on the after_update callack of a model?
- How can I write one entry to two fields to two tables?
- Is there a way of having a cap task only execute on 1 server in 1 environment ?
- Is there a way of turning off asset host for 1 or 2 particular images?
- If I have a reference to a model that may have been deleted, is there a method I can call like model
- Is there a similar method to rake db:schema:dump to take the data from my existing db and generate a
- Where do I define what ruby version to use in my application?
- Does rails have a method to parse relative time, or should I use something like Chronic?
- How do I tell which gems and plugins are depended upon in a rails production server?
- Is it possible to create a migration that creates/drops the current schema so I can delete all the o
- Is there any harm in deleting all migrations, making an initial one, and then rake db:reset ?
- What's the best straight-to-the-point tutorial I can follow on the web?
- Where can I download( check-out ) Rails 3 for tests ?
- How can I start my rails app on a production server, that someone didn't configure it to start autom
- Should I use ruby 1.9 or ruby ee with rails3?
- How do you suggest I deal with polymorphic methods?
- How do I disable inline_errors on one formtastic block without touching any of the others?
- Is there an helper to find the page of an object with will_paginate ?
- Is it wise for me to have my models that are used for admin purposes put in a separate admin folder?
- Can someone give me a hand setting up RVM?
- What does find in require 'find' do?
- Does rcov work with Ruby 1.9.1, or is there something similar that does?
- Does rcov, or something like it, work with Ruby 1.9.1?
- Is there a recommended way to get a the title of a website from rails?
- If users have comments couldnt't shouldn't I be able to find comments by that users by doing: @user
- How to set a specific class on several option tags of select?
- Do you first learn ruby and only then rails, or some of us have started with rails right away?
- Is there a way of escaping some characters so that they are not capitalized when using "Titleize" m
- Is there some callback that I could register for, called when a constant is deleted?
- How can I tell rails that "format" is optional"?
- Where can I read about the difference between or and || ?
- If I want to include php inside a haml file could I use plaintext somehow?
- Would there be a way to use nesting with plaintext in haml?
- How can I prevent rails to render the hidden field for checkbox in front of the element?
- When I do a Product.find([1,3,x]) where no product record id exists for x I get an exception: Co
- Whats the proper way to overwrite a rails helper in a module?
- What is the latest rails stable version ?
- How can I define it inside the route.rb?
- When using the sentient_user gem (http://github.com/bokmann/sentient_user), how do I access current_
- Do any of the .bat files have a file with no extension with the same name?
- Is there any REST way of making URLs like /professors/:university_id/:professor_id (instead of /univ
- Is there anything simulator to Process.exit, that doesnt kill the hole process?
- Is there anyway to get `rake gems:install` to install rails instead of complaining that it doesn't e
- Whats the best way to find the mime-type of an uploaded file?
- Is there some trick I need to be aware of when wanting to use NOT IN with a finder condition?
- Should Rails be able to handle a file uploaded with a non-English filename?
- Is it possible to convert a hexdigest to a binary digest?
- Is there any way to use the jquery load function to just reload the entire dom into the page?
- Can I pass any prepared variables to the JS from the rails app?
- Is it possible to add a model association callback to an existing association?
- How can I see where a method is defined from within a ruby-debug session?
- Can someone help a <% form_for %> ?
- Is there an easy way to get the class name for a relation if all you know is the column name?
- Is there a way to change a column in a migration to remove a null => false constraint ?
- Is there a way to make it so activerecord tests don't use the mysql socket?
- Can the submit_tag carry a param of its own, that it will send?
- Is there a way to disable ActiveSupport 2.1 autoloading of missing constants?
- How can I have the structure of my development DB copied into my test DB for my rake tests?
- Are there any openid solutions out there that aren't tied to authliogic or some other auth system?
- Will that work with non-rails conforming tables in the DB?
- What is the best way to convert metal apps/endpoints to rack apps?
- Is there an easy way of changing how a column name looks like in an error. Like a user_id relation,
- Is there a way to wrap a rails app into a desktop package?
- How do I calculate string length for utf8 string in ruby 1.8?
- What's the best way to do app specific configuration in rails3?
- What a strange bug... any idea why my cookie :session_key might get prepended with a newline?
- If git tracks changes and it has a .gitignore line public/page_attachments/**/* shouldn't it keep th
- If so, what's the ideal way of doing nested forms in rails?
- Does paperclip create the storage folder I set the path for?
- Is there a way to access the submitted values in a validator?
- What's the currently favored library for testing filesystem manipulation?
- Is there some trick to setting up a dummy host and having redirect maintain that host?
- Is it possible to escape values when we use "select_all" to write pure SQL conditions ?
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO 3.6.0