View Full Version : Ruby
Pages : 1 2 3 4 5
[
6]
7 8 9 10 11 12
- Is there an ActiveRecord callback for when a new model object is first saved successfully, like the
- Will Rails.root tell me what the nautilus filepath of my root dir is?
- What do people use for plugins to protect controller actions (ie: acl plugin)?
- Does anybody know what the .register! method does?
- What is the best way to do many to many forms. So I have products that can have many categories. H
- What do yall think of rails 3 compared to its predecessors?
- Where would I set the string encoding for a rails app to be UTF-8?
- Is it hard to do something like a friend stream kind of like what myspace has?
- Is it difficult to do something like a friend stream kind of like what myspace has?
- If ptd.due stores the value of 7, and I want to convert that to the corresponding month (July in thi
- If ptd.due stores the value of 7, and I want to convert that to the corresponding month (July in thi
- Is there a comparable Ruby statement to htmlentities in PHP?
- What's the best way to determine what country a request is coming from?
- Would someone mind taking a look at this controller?
- Is there one special requirement for install jruby in rvm ?
- How can I enable sth for a limited time?
- If you're trying to be RESTful and DRY, if you can say edit a model as an admin, or as the owner and
- Is there a way to get which ruby interpreter is running at runtime?
- Can someone please do me a faviour and do a "gem install ruby-ole" and then "rake gems:unpack GEM=ru
- Where would one have to look to use own forms but use Activescaffold for the listing only?
- Should I start coding my next release in 3.0 beta or 2.3?
- Is there any issue with fastcgi usage for rails 3.0.0beta4?
- What is the best rails-way to incorporate a test file into my unit tests?
- How can you find out where a method is defined?
- Is it possible to do single click in e-Texteditor instead of double click for opening project files?
- If you create an inventory item and image manually, then save the inventory item does the image get
- What's the best way to validate a value that can only be an integer from 0 to 5?
- If you create and save an inventory item, then create and save an image, then associate the two, tha
- How can I configure rails3 to not load active record?
- How do I write a ruby script that depends on the database / other models?
- Can you make a single model in AR which represents an aggregation of multiple tables?
- If you have identical actions in two different controllers, is there a good way to DRY that up?
- Is there anyway to tell rails to use "user" and not "users"?
- When do you need to use active record transactions?
- How do you do map.whatever "/path/to" but allow for multiple formats besides just HTML?
- What method do I call to get a URL to a static resource in the 'public' directory?
- Is it difficult to transition between rails 2.3.5 and rails 3?
- Can someone help me with a simple ruby question?
- Who votes to advise awesome_guest to use Rails 3 with 1.8.7 so he won't have any internal problems a
- When you make a model User, and say "has_many :addresses", what is the "has_many" anyways?
- Is it possible to have a rails application template add code to config/enironment.rb that's outside
- How do I get the first 100 characters of a string?
- What is the correct way to render XML with Rails?
- How can I get rails to think the format is different?
- What's the best way to have a route redirecting to another?
- How should I assing a session[:user_id] in spec/lib/session_spec.rb, when I want to make a spec-test
- How could I check if a DB Field is set or not?
- What do I use if I want to have @app_name=Configuration.find(1)[:appname] available in all actions o
- Isn't there a plugin which helps you get the update from 2.3 to 3 right?
- If I'd like to use the welcome layout for one action I do this right layout "welcome", :only => [:sh
- Is there a data type option for migrations such as :min => 1, :limit => 3?
- When using paperclip w/ Rails 3 beta4, do I have to use :multipart?
- How about `bundle exec rails s`?
- How can I add methods to Array for use in my view?
- Is there a way to `cd` from a ruby script?
- Is there any way to create a virtual column name for a model, so I can pull it with model.column_nam
- Does that @title always exist?
- How can I add date to a users session per rails dev console?
- What's standard practice for setting up an application wide header?
- Can I force a ruby version to boot the Rails console with?
- How is the form supposed to know it is supposed to submit to a different URL depending on what the u
- Whats the best way of attaching files in rails 3?
- How do I over-ride Rails pluralization?
- If I am starting a new project from scratch and need authentication and authorization, at what plugi
- How does one register a handler with Rails 3 for templates?
- Is there a way, with SASS, to get timestamps on URLs in stylesheets?
- How can I identify which template or controller action I'm in from within an erb template?
- Are there any rumors as to when rails 3 rc is going to drop?
- How would I create a CAPTCHA for Ruby on Rails?
- Does anybody know how to access the name of the action that the HTTP Request to the controller actio
- If I run :length.to_proc right into irb, it returns a balid proc.. but how does it know which object
- How do I make it so that when a user hits "back" on their browser, it makes them reload the page the
- Is it possible to specify the relation to a model when generating it?
- Isn't there some sort of way to make AJAX do highlighting like what I want to do?
- How do I mock `pwd` using RR mocking lib?
- How do I stop rails from converting my price to bigdecimal so I can work with the string the user en
- Do I have to do anything special to get Rspec to let me test my helpers?
- Is it possible to override, for example, + operator for base class, such as String in a scope of a
- Is there a better way to convert array of ASCII chars into an string than this: http://pastie.org/10
- Is it appropriate to change that in your model though?
- What's the best practice for having a remote link/form work with and without javascript?
- Is it like an if statement to see if the request was remote or not?
- What does this mean?
- Can I use Rails methods inside application.js?
- How do I enable logging on Rails 3 installs?
- What's the mechanism for installing a gem into vendor/cache?
- Is there a way to access the application name in an application template?
- Is it possible to set the failure message for something like should allow_value("whatever").for(:wha
- How can I apply a visual effect to a record (represented in a view) that im about to delete?
- What is good approach to load basic data like default users, seeds file or migration files ?
- What's wrong with what I suggested?
- If you use Rails Metal to stick a rack handler in somewhere, and you're still using the old mongrel+
- What replaces for example, script/server ?
- When programming, do you set a trailing newline at the end of the source file?
- Is there a way to change the :id key on map.resources these days?
- How do I compare created_at with a DateTime/Time object from the database :condition parameter in a
- Is there a way with formtastic to just get the input?
- When using Bundler, how can I make Rails pick a directory as a gem (not a installed gem), so that I
- What is the etiquette on dumping carts after a certain time has elapsed?
- Do ruby/rails models have a way to set default attributes, such that 'print @object' would sanely tr
- What is the {recommended,current,old} way to do asynchronous networking in ruby?
- Is it possible to have a model object that doesn't have a db object associated with it?
- Is there a ruby cms as featurerich and advanced as Django-CMS for ruby, preferably with rails?
- Does anybody here know what undefined method `model_name' for Login:Class means?
- Do homemade models that are not connected with a db table have to have custom made constructors or s
- Is it possible to set a session variable from javascript in rails?
- Is there a way to bulk delete records?
- If I do redirect_to :controller => "x", :action => "y", :notice => 'this is my notice', then wh
- Do you still the need has_many_polymorphs plugin to have many polymorphs in rails 2.3?
- What are the min cpu and mem requirements to run rubyonrails?
- Isn’t there a ruby string constructor that takes a length argument as well?
- If you sort an associative array of times by minutes, ie 30 minutes => 30, 90 minutes => 90, 2 hours
- Should I do this through Roles on a User model, or have separate models for Admins and Clients?
- Is there usually a helper url for deleting objects?
- How am I supposed to handle that?
- Is there any S3 server (Park Place style) packed in a gem or something easier to integrate with a ra
- If I want to set up some kind of polling notification system, how can I limit the number of requests
- Is there a nice simple algorithm for finding a random "thing" from a weighted set of "things", where
- Is there a difference between using == or === in ruby?
- How can I activate a process in a model just by clicking some "button" in the view?
- Do view helpers, such as link_to, sanitize the input you give them?
- Can someone tell me how to run multiple ruby scripts in order syncronously?
- Did railscasts do a screencast on making 'fancy' 404 screens?
- Whats the recommended way to do asynchronous networking in ruby?
- When using a lightbox popup is there a way to make the back button affect just the lightbox when it
- Is it possible to get the binding a method has been called from?
- Is there a way to access the string entered for a Date field on an active record?
- Do I actually need to restart the console every time I update a lib file?
- Is there a way to do it thats faster then map {|x| number_to_human_size(x) } ?
- Is there a way to temporarily disable caching for one test and leave it enabled for another (I want
- Is there a quick way to migrate a bunch of gems over to a new ruby install?
- Is it possible use autotest outta Rails, only in command line ?
- What exactly is f.error_messages?
- Would it look something like this?
- Is the use of [] as a class factory method (ie Dir[]) falling out of style?
- Did there used to be shortcut to create an empty array aside from = [] or did I dream that?
- Is there a standard way to have a controller method respond with with a partial for AJAX requests an
- Is there some easy way to split up array for display in rows in a template?
- Can ruby methods be given ruby keywords as names?
- If I have two rails app sharing the same database, is there a way to share certain models between th
- Does it cause any problems to have a dummy model with some common code, and no associated table, and
- If you've got a git pull that'll overwrite something with the merge so git pull aborts, is there an
- When I'm using map.resources ... is there a way to instead of the id, another attribute is to be use
- Is there a normal way of getting past the fact that an object created with ModelName.new(params[:mod
- Is it known that ruby-debug is clearing out ARGV, basically killing all possible generators?
- How do I make it so I find the most recent object in a collection that belongs to another object?
- Did you , well I don't know if it's in rails three, but did you comment out the production variable?
- If 'Site rescue nil' doesn't return nil, then defined?
- If you want to share a database between two rails apps, what would be the 'rails' way to share speci
- Can somebody make this into an Rails 2.3.5 AR find?
- Whats the best way to do indirect variable access in ruby?
- Is it a mixin or does one inherit the other or is it some other mechanism?
- Is it possible to organize translations so that I can access them hierarchically?
- How do I use form_for to make a form that will method=delete something?
- How do I manually link_to the update method of a RESTful controller?
- Can I limit the size of binary files being inserted into the database using the :length { :maximum =
- Is there any functions in Rails migration that can update existing tables with new rows?
- How do you check for whether a row exists for a nested resource?
- Did you install 1.9.2 after you'd gotten the rails gem?
- Is there perhaps just a way to query mysql directly to solve my problem like php's mysql_connect, my
- Is there anything I need to require in a standard model to be able to use the named_scope method?
- Is there a regex class that's like b for word boundary, but treats punctuation as words as well?
- What is it that I must do to transform [1,2,3,4,5,6] to [[1,2],[3,4],[5,6]] ?
- Do I need to use scope instead of named_scope when I include ActiveRecord::NamedScope into my model?
- If I want to create a network connection to a resource and share it among everything while handling
- Do you guys think its a bad design if I implement a three step event registration where the first st
- Do you know if there's any way to get around that?
- Is there a way to select just one record with arel without call .first on something, then?
- How should I go about creating the following sql using ARel?
- How do I make rails 3.0.0.beta4 use rack 1.2.1?
- What XML parser does Rails use by default?
- What api in freebsd should one use to get all of the names?
- How can I tell my apache to display the project in "development-mode" so I get some error-messages?
- Does ActiveRecord already generate a hash off all attributes?
- Does anybody got an idea about why "StreetAddress.find(1, :params => { :person_id => 1 }) " doesn't
- Is there an api.rubyonrails.org equivalent for Rails 3?
- Can I write this little snippet a better way?
- Is it logical to assume that if I want to build web-based apps with Ruby on Rails, I should start wi
- Is there a decent gem or plugin available for managing breadcrumbs?
- Can I do this?
- Are there circumstances under which a form_for tag would generate the inputs but not the form tag it
- What's the easiest way to tell if a number is negative?
- What does rails have in the way of modals?
- If Ihave a listings type app. And I want some listings to be featured. Is it better to just put a fe
- If I pass a block to an asynchronous operation, is the usual way to block in the invoking thread to
- How can I specify on the command line which version of rails I want to use?
- When building a hash, is there a way to have one value aware of another key's value that has already
- Whats the best way to set a unique id on the body tag in application.html.erb. define a variable in
- Do I need to add a route to handle photos as such?
- When I have a t.references field in my migration, how do I explicitly set that when creating a new o
- Can I include more than one :object in a map?
- Is there a way to use something like fixtures without test-driven development?
- When does the rails 3 come to stores near me?
- How do I change the prototype in rails3 to jquery?
- Is there a cute way to get the common prefix of an Array of Strings?
- Is it possible to turn an openstruct back into a hash?
- Whats the best way to register users / authentication?
- Did yall look at http://www.techtoolblog.com/archives/ruby-php-aspnet-job-comparison ?
- Whats the best method to encrypt a password?
- What stable version of ruby on rails?
- How about this method?
- Would you put that on my account please?
- If a person doesn't know their password how can recovering it be better for them than resetting it?
- How do I get form_for to set a parameter different from the class of the object?
- Is there anyway to tell bundler where to install gems?
- How toimplement more than one submit button on the from to go to a different action?
- When running bundle install how do you get it to exclude your groups?
- What's the best way to implement a dashboard/logging ability. So users can see what other users with
- What's the best way to implement a dashboard/logging ability. So users can see what other users with
- How should I specify public/uploads/tmp within Dir.new() from within a rake task?
- What is the best way to pass an id of a model to another models new page?
- Is there a shorter way to write this: element = 1; a = {}; if a.has_key?
- What do you need to know in paperclip?
- If I type "gem install padrino" for instance and I already have the latest version of padrino instal
- If I have a virtual attribute, is it possible to include in query results?
- Whats the best way to increment a value in a table by 1 instead of adding a new record?
- How do I tell rails to never run a particular migration?
- Is there a way, that I can load this token inside another site?
- How can I add each decimal value of a str, so that the sum is returned?
- Can I convert an ajax call that will update only a div to a reloading call?
- Can you guys suggest a website that can guide me through using rails master branch as my dev "rails"
- What's the most up to date postgresql driver for ruby ?
- Is there a better way to share my code than gem serve?
- Is there issues with errors with Rails 3 beta 4 ?
- Is there a way within ruby to return a proxy object in a method that defines a given method that wil
- How does the India and US works compare to each other, in terms of quality?
- What's the best platform to use as a basis for a webserver that relies heavily on rails 3?
- Is there anything special I have to do when testing an update method?
- How do I test for the json rendered by my controller?
- Is there an easy way to search through an array where each object is itself an array and using the f
- Is there a way to customize how array.index searches through an array?
- How much RAM could the server possibly take on my computer?
- If I do redirect_to :controller => 'moverang', :action => 'search_providers', :locals => {:next_type
- Is that still the way to load code like that ?
- Is there any chance at all of getting Rails 3 beta working on Ruby 1.8.6?
- Is there a way to check whether a contect_for was declared or not?
- 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
- Is there a way to parse ruby code to see if it's valid, without interpreting it?
- Will rspec 1.3.0 work with rails3?
- Can someone have a peek at this?
- Does it make me weird that I'm 31 and I'm netflixing the avatar: the last airbender cartoon?
- If you have a form_for inside another form_for, haml seems to break off the outer form. so if you h
- What's the best way to check everything being submitted with a form?
- Is there a way to see everything passed in a form submit?
- Is there any way to prevent caches_action from prepending 'views/' to the beginning of cache_path ?
- How to check if will_paginate function will result in empty string (1 page)?
- Is there a way to see how much data my apache2 server is serving?
- Is there any way to use restful routes but tell it not to route the standard actions?
- What callbacks, if any, exist for delayed_job so I can update the view when the job is complete?
- Is there a way to force it to use consecutive numbers for id?
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO 3.6.0