similar to: Override default Rail Generator options

Displaying 20 results from an estimated 30000 matches similar to: "Override default Rail Generator options"

2009 Feb 03
1
Passing args to generator
I have some default_options in generator and when I wish to change they value with --option_name I get only logical true instead of string ... default_options :option_name => "Some string" ... def add_options!(opt) opt.separator '''' opt.separator ''Options:'' opt.on("--option_name","Some Text") { |v| options[:option_name] = v
2001 Mar 10
0
patch to add device-option to ogg123 rc file
Below is a patch for vorbis-tools-1.0beta4 ogg123. It adds support for using the rc file (like /etc/ogg123.rc) for configuring the device-options. In addition, comments can be used (when they start a line). My ~/.ogg123rc: default_device=oss default_options=dsp:/dev/audio Please share your comments. Jeremy C. Reed http://www.reedmedia.net/ diff -u
2007 Oct 03
3
Pagination problem with acts_as_ferret
Hi, am using this wonderful plugin acts_as_ferret and according to the tutorial at http://railsenvy.com/2007/2/19/acts-as- ? rial#basic I worked it out except the pagination feature. If I have 12 records and I give limit to 10, its correctly displaying 10 records in the first page and is giving the link to the second page too. But when I go to the next page I find the same 10 records instead of
2011 Dec 17
0
hal, gnome.. custom mount options for vfat storage devices
Hello there, w/ my CentOS6 (up-to-date), running GNOME, I'm struggling with HAL and mount options for my USB storage devices. According to what I'm reading from: http://www.linuxfromscratch.org/blfs/view/svn/general/hal.html My old policies in /etc/hal/fdi/policy/ are ignored (and this is true!). Apparently I should edit my custom mount options through gconf-editor (in
2007 Sep 05
1
AAF and DRb with highlighting
How would I change this method in order to get highlighting working with DRb? I''ve given up on searching on Google, I''m getting no results that are actually helpful. def self.find_storage_by_contents(query, options = {}) # Get the index that acts_as_ferret created for us index = self.aaf_index.ferret_index results = [] default_options = {:limit => 10,
2007 May 02
4
Wrong total_hits when using conditions in find_by_contents
In my model Topic: acts_as_ferret({ :fields => {:username => {:store => :yes, :boost => 30}, :subject => {:store => :yes, :boost => 20}, :body => {:store => :yes, :boost => 10}}, :remote => true }, { :analyzer => Ferret::Analysis::RegExpAnalyzer.new(/./, false) }) def self.full_text_search(q, options = {}, find_options = {}) return nil if q.nil? or
2006 Feb 27
0
Simple Namespace Question
I put the following code into my application_helper.rb file, which will allow super fancy ajax pagination blah blah blah. Now the problem is, it''s not being identified. I''m running Rails 1.0.0, and froze edge, so it''s sitting in /vendor. The actual pagination_helper.rb file is appropriately sitting in: /vendor/rails/actionpack/lib/action_view/helpers
2012 Jan 25
0
Paperclip preserve files ?
Hi, I am using paperclip to upload files. The problem I am facing is, based on my object property I need to preserve my file. Means my object should be deleted from db but the file need to be restored. I am using the option :preserve_files => true. If I keep the above option in model it will be access to all the objects of the model. I need to restore only for limited objects.
2006 Nov 08
0
Paginating a fetched resultset problems with next/previous
Im using this paginate function to paginate complex sql queries http://www.bigbold.com/snippets/posts/show/389, all seems to work fine but theres one thing, when i hit the next link it show nothing, i mean it only shows the first page, here is the code im using: #application.rb----------------- def paginate_collection(collection, options = {}) default_options = {:per_page => 10, :page
2004 May 08
2
as.double.default()
Hi there! This is my second message in two weeks. I am regretting to get ride of my R-1.4.1! In fact, since I upgraded to R-1.8.1 (directly from R-1.4.1) and then to R-1.9.0 I am experiencing diffulties I never faced before. Professor Ripley and Dr. Murdoch had helped with the "Fatal Error. HOMEDRIVE." Another problem I am now facing is that R is not reading any matrix if I do not
2007 Jul 18
5
Strange search result with conditions in find_by_contents
Hi, guys: Strange search result with conditions in find_by_contents! first of all, i''ve installed the acts_as_ferret to my project vender folder by ''ruby script/plugin install svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret'' in my SearchController def searchforum if !params[:doSearch].nil? if params[:searchTerms].nil? || params[:searchTerms] ==
2007 May 24
2
Missing RspecScaffoldGenerator
Just a quick note that I had to make the following change after installing 1.0.2 as rails plugins to get the resource generator working: Index: rspec_scaffold_generator.rb =================================================================== --- rspec_scaffold_generator.rb (revision 2022) +++ rspec_scaffold_generator.rb (working copy) @@ -1,4 +1,4 @@ -class RspecResourceGenerator <
2011 Oct 12
1
Ride! Next Generation Equitation - fails
Trying to get a horse game running with wine in the computer. Code: wine '/home/TForsman/.wine/drive_c/Program/PAN Vision/Ride! Next Generation Equitation/EquestrianApp.exe' wine: Call from 0x68417be2 to unimplemented function msvcp80.dll.??0?$basic_ostringstream at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QAE at H@Z, aborting wine: Unimplemented function
2006 Mar 21
2
Sorting by computed temporary field
Hey all, I''m rather new to Ruby and Rails (and not great with SQL), but I''m developing a ride sharing app and would like to be able to sort on something I don''t have stored. I have users, events, and rides, each of which has a zip code. Events have_many rides, and rides belong_to events. When an event is selected, I''d like to be able to show a list of
2019 Jan 19
4
Can we disable diffie-hellman-group14-sha1 by default?
I'm not sure if collision resistance is required for DH key derivation, but generally, SHA-1 is on its way out. If it's possible (if there's not a very large percentage of servers that do not support anything newer), it should be disabled.
2017 Jan 10
3
Default hashing function for integers (DenseMapInfo.h)
> It is not clear what the test-case is (what source, what compiler options). My suspicion is that your differences are in the noise, and most of the time is spent doing other things than hashing. Did you profile the a run, and check how much of the total time is spent in the hash-function [you may need to tweak the code a bit to not inline the actual hash function]. Also publishing the RANGE
2006 Jun 11
0
Error in "[.default"(mf[, 1], , 1) : incorrect number of dimensions
Hi there! I would be very appreciative of your help with getting ride of the above mentioned error. As apparent on the following output, I am trying unsuccessfully to run glmm following strictly the example accompanying repeated package. I was able to get it from http://microarrays.unife.it/bioc-mirror/lindsey/stable/src/contrib/html/ >
2006 Aug 03
6
Listing all of a nested Resources
I''ll use the example on the Rails blog. map.resources :posts do |posts| posts.resources :comments, :trackbacks end Now comments are at /posts/:post_id/comments. Okay but what if I want to list all the comments for all the posts. It should be at /comments, but that isn''t map that way. Can I map comments twice? -- Posted via http://www.ruby-forum.com/.
2019 Jan 19
3
Can we disable diffie-hellman-group14-sha1 by default?
e.g. can we make it throw warnings etc. rsa-sha2-256 and rsa-sha2-512 are fine, they use PSS. On Sun, Jan 20, 2019 at 1:55 AM Yegor Ievlev <koops1997 at gmail.com> wrote: > > Also can we do anything with ssh-rsa? It uses both SHA-1 and > deprecated PKCS#1 padding. If it's used to sign certificates, there's > no additional protection of SHA-2 hashing before SHA-1
2006 Apr 13
2
running rails on Linux
I''ve done local installs of ruby-1.8.4, then rubygems-0.8.11, then: % gem install rails I get rails and its dependencies all going into: /local/pkgs/ruby-1.8.4/lib/ruby/gems/1.8 i.e. /local/pkgs/ruby-1.8.4/lib/ruby/gems/1.8/gems/rails-1.1.2 In the rails directory I see: /local/pkgs/ruby-1.8.4/lib/ruby/gems/1.8/gems/rails-1.1.2/bin/rails which I presume is what is executed when