similar to: script/generate and --destination

Displaying 20 results from an estimated 60000 matches similar to: "script/generate and --destination"

2011 Jul 25
3
Rails 3.1 Engines: Full vs. Mountable
Hi all, I was hoping someone could please clarify the differences between a full engine and a mountable one. I have noticed the following: ** Full Engine ** - With a full engine, the parent application inherits the routes from the engine. It is not necessary to specify anything in parent_app/ config/routes.rb. Specifying the gem in Gemfile is enough. The engine routes are specified as: #
2014 Mar 31
0
Rails Engine ActionController::UrlGenerationError on functional tests
Hi, I'm looking for a way to solve an error I get each times I run my functional tests. I have a Rails Engine gem (isolated), I have a JSON action with a route declared. But each times I use the method get in a test I get an ActionController::UrlGenerationError exception. Here an example of code with the problem: # config/routes.rbMyEngine::Engine.routes.draw do resources :cats, only:
2006 May 19
1
FileColumn
I''m using Windows and Postgres 8. I installed RMagic gem thingy and FileColumn plugin ok. I followed instructions exactly as directed on FileColumn web site which is very straight forward: ---model class My_model < ActiveRecord::Base file_column :column_for_file_name end -----view -upload form--set to mulitpart <%= file_column_field "my_model",
2011 Jun 04
1
rails 3 engine under dynamic scope
hello, i have a rails 3 engine scoped dynamically like this: scope "/:locale" do mount MyEngine::Engine => '''', :as => ''my_engine'' end I can''t seem to be able to set my own locale like this: my_engine.page_path(page, :locale => ''de'') the path is generated like this: /en/page/12345?locale=de instead of
2006 Jul 29
1
Anything wrong with this test? Cannot access fixture
Hi, I have problem accessing the testfixture. The values from the YML-Fixture-File are correctly written into database, but accessing the fixture is impossible. It is always nil. Is anything wrong with this test? class MyModelTest < Test::Unit::TestCase fixtures :my_model def test_simple a = MyModel.find(@my_model["first"].id) # Accessing @my_model is impossible ...
2005 Apr 24
2
Model names in controllers
Please excuse yet another newbie question... I''m getting this error: MissingSourceFile in <controller not set>#<action not set> c:/program files/ruby/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/dependencies.rb:75:in `require_dependencies'': Missing model MyModel.rb From these lines of code: class MyModelController < ApplicationController
2005 Apr 10
2
residuals in VGAM
Hi all: I want to fit a multinomial logit model with VGAM package, however I cannot find a way to check the residuals since residuals(my_model) and resid(my_model) does not work. Any suggestions? Thanks in advance. Alex Brito [[alternative HTML version deleted]]
2017 Jun 26
3
Jagged ROC curves?
Hi, I was trying to draw some ROC curves (prediction of case/control status), but seem to be getting a somewhat jagged plot. Can I do something that would 'smooth' it somewhat? Most roc curves seem to have many incremental changes (in x and y directions), but my plot only has 4 or 5 steps even though there are 22 data points. Should I be doing something differently? How can I provide a
2017 Jun 26
0
Jagged ROC curves?
> On Jun 26, 2017, at 11:40 AM, Brian Smith <bsmith030465 at gmail.com> wrote: > > Hi, > > I was trying to draw some ROC curves (prediction of case/control status), > but seem to be getting a somewhat jagged plot. Can I do something that > would 'smooth' it somewhat? Most roc curves seem to have many incremental > changes (in x and y directions), but my plot
2007 Feb 16
2
Permissions of the top-level destination directory without --perms
I noticed that rsync sometimes miscalculates the permissions of the top-level destination directory when --perms is off. For example, run these commands in an area free of default ACLs: umask 0000 mkdir -p src/foo chmod 700 src src/foo rsync -r src/ dest/ find . -ls 763054 0 drwx------ 4 matt matt 96 Feb 16 17:57 . 763158 0 drwx------ 3 matt matt 72 Feb 16
2007 May 21
7
How do I stop a column being updated by model.save?
One of my models has a column that is updated very frequently from a separate process, so it is important that when a record is saved in rails, this column should be left alone. In the update method of the controller I have: @record = MyModel.find(params[:id]) @record.update_attributes(params[:my_model]) params[:my_model] doesn''t have a reference to the column I''m talking
2006 Jan 12
2
Engines issue: rake test_plugins failing when it shouldn''t
I create a simple engine with a simple controller: class FredController < ApplicationController def hello render :text => ''Hello, world!'' end end and I create a simple functional test within the engine: class FredControllerTest < Test::Unit::TestCase ... def test_hello get :hello assert_response :success end
2017 Jun 26
0
Jagged ROC curves?
Hi Brian, Your underlying dataset for the ROC curve only has 4 unique values for specificity, even though there are 23 elements in the vector, hence the step function nature of the first plot. The default smoothing in the smooth() function is "binormal". You might try one of the other smoothing options to see the result and whether they make visual sense. In the absence of smoothing,
2006 Jul 31
3
Missing controller default code
Hello, I generated a controller, using the command: ruby script/generate controller my_kontroller my_model The generated controller file, however, contains an empty class definition. The default controller code is missing. Any idea what went wrong? Thanks, gk -- Posted via http://www.ruby-forum.com/.
2008 May 30
3
How to backup files without destroying the destination?!
Hello List, i would like to copy/mirror/rsync the backup files from ServerA to ServerB. Since i must assume that ServerA is hacked (public server with a few services), i would like to "pull" the files to ServerB (save server with no services). That means i do something like: rsync -avz ServerA:/backup ServerB:/backup IF ServerA gets hacked and the files get zeroed out (every file
2006 Aug 03
5
Database configuration across developers!
Hi, I have what might be a silly question but is there any way to put some of the database configuration information into a separate file? For instance, in config/database.yml I have: developer_database: &developer_database adapter: mysql username: me password: something host: 127.0.0.1 development: <<: *developer_database database: foobar_development test: <<:
2012 Mar 23
1
ffmpeg adaptor for ogg123
Hi all, I'm not sure if this is interesting to you guys (I'm also not 100% convinced this is the correct list) but I hacked up an adaptor for ogg123 to allow it to use ffmpeg as a decoder. It currently only recognises WMA files (I wanted to be able to play my wife's music from my Linux music server) but it would be trivial to extend to any other formats ffmpeg supports. Anyway, if
2020 Sep 17
1
Skip source files that differ from existing destination files with a warning?
Hi again, rsync list! I was heavily involved in rsync development and support back in 2005-2010. I've largely lost interest in that now and my knowledge of rsync is beginning to become stale, but I'm still a big fan and user of rsync, so I'm back with a user question. :) I did search the web and didn't find anything relevant. I have a scenario in which regular files are created
2012 May 01
0
Engine: access to url_helpers otside view/controller
I use Engine. How to get access to url_helpers, such as <name>_path or _<name>_url, in a separate class? In application it simple: Rails.application.routes.url_helpers.<name>_path But how to get access to url_helpers in Engine? When I use Rails.application.routes.url_helpers.root_path, then I get ''/'', root of Application. Other helpers for Engine
2009 Oct 08
1
DO NOT REPLY [Bug 6788] New: rsync does not abort early but needlessly transfers data if destination is write protected
https://bugzilla.samba.org/show_bug.cgi?id=6788 Summary: rsync does not abort early but needlessly transfers data if destination is write protected Product: rsync Version: 3.0.5 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: core