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