similar to: Rails generators documentation

Displaying 20 results from an estimated 80000 matches similar to: "Rails generators documentation"

2012 Sep 06
1
[Rscript] difficulty passing named arguments from commandline
Wanting a commandline solution (for a problem detailed @ http://mailman.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2012/msg00279.html ) I turned to Rscript, and whacked out the q'n'd https://github.com/TomRoche/GEIA_to_netCDF/blob/master/netCDF.stats.to.stdout.r However it wasn't as quick as hoped, because I spent quite a bit of time figuring out how to pass the arguments.
2007 May 25
7
Storing large BLOBs in the database with ActiveRecord
I have a model called Product with an attribute called file of type :binary (DB BLOB). If I do product.save (where product is an instance of my Product model), here is SQL statement that the mysql adapter for Ruby will do: INSERT INTO `PRODUCT` COLUMNS(NAME, PRICE, FILE) VALUES(''PROD1'', 4.56, X''00DEF033423023220'') All is hunky dory for as long as my BLOB is
2003 Nov 10
3
AGI and PHP
i've just spent the pass 2 days trying to get AGI to work with PHP; i made a lot of silly mistakes along the way which could have been avoided if only there were some kinda howto or samples. at the risk of looking stupid, i decided to shared my experience in hopes that it might help some newbie get going with PHP. 1. first order of business is to be aware of your php environment; i m NOT
2006 Apr 20
1
Rails is losing key information
I am using ruby 1.8.4 with rails 1.0 under fedora core 3 on a WIntel platform. Rails appears to be losing key information under some circumstances. Specifically, in the Questions class that follows, the presentation_id property is apparently being lost. The STDOUT dump from the create method indicates that the presentation_id should be 42, but the dump from the database shows that it is 43,
2008 Jan 27
4
Rails versions and documentation, confused learning rails
Okay, I am new to rails. I see that the new release of rails does not apply to anything on the site with regards to tutorials including screencasts. What I don''t understand is how I am suppose to learn Rails 2.0 if there is no docmentation for it. I did see that on peepcode there is a pdf for what has changed but how does that help me? How do I get an understanding of the design
2006 Nov 16
0
Rails logger doesn't log nil, Ruby logger does
Is there some reason that the Rails logger doesn''t log nil as the string "nil", like the Ruby logger does? It is a bit confusing. Ruby example: $ cat log.rb require ''logger'' logger = Logger.new(STDOUT) logger.info "test" logger.info true logger.info nil logger.info "end test" $ ruby log.rb I, [2006-11-15T16:45:00.348262 #2058] INFO
2006 Jan 10
0
Extending Rails with Framework Generators
I''m a total newbie still plowing though people''s code and figuring things out in general. One of the things I''ve been looking at are plugins and engines. Although I''m a newbie, I reached the conclusion that either approach really leaves much to be desired (also, since I need to learn about the underlying code instead of borrowing). I totally agree with DHH
2006 Jan 22
0
Using rails Generators for non-RoR
I realized that the rails command could be used very effectiely for non RoR apps, and, with a little tweaking, even nonRuby apps. Anyone give this a try? -- Posted via http://www.ruby-forum.com/.
2006 Apr 01
12
Repost: Why is rails generating bad SQL?
It looks like I am missing something obvious. ActiveRecord is generating _really_ bad SQL for this configuration, and I can''t quite figure it out. I''ve instrumented ActiveRecord enough to localize the problem somewhat, and generally by this time I would have a good idea of what I was missing because it''s all in the source. It appears that something in
2006 Nov 22
2
help on tuning rails Rendering time
Hello all. I was hoping you guys could help me with understanding the best methods of performance tuning rails rendering time. Basically, I have my site up and running and while doing some performance tuning I saw that each page load spends most time in Rendering ~80% vs DB time ~ 1%. I found a bunch of bugs in extra SQL calls but obviously all of this would affect the 1% time which is not
2006 Dec 14
8
ActiveRecord outside of rails
I have a few questions regarding using activerecord outside of rails. Usage is with legacy databases, which gives rise to some of the problems. Probably the first, and most simple question though, is how to capture the SQL log, with which I can hopefully figure the other stuff out. I''m currently trying ActiveRecord::Base.logger = Logger.new STDOUT Based on random googles, but it
2010 Apr 15
1
Using Rails.Logger in a gem in Rails 3beta3
Hi fellows! I want to use the Rails.logger in my gem. I try the following code in my main gem-file. require ''rails/logger'' puts "init1" ::Rails.logger.info("hi") puts "init2" The funny thing is: It even don''t give me the output of puts in the stdout of the server! But if I remove the call to Rails.logger the puts are displayed in the
2006 Oct 28
2
where is the "record" method??? i.e. which is used in generators (e.g. scaffold_generator.rb)
Hi, Anyone know where the "record" method is defined. Its used in generators like in the scaffold generator. An extract from it is below (taken from scaffold_generator.rb): def manifest record do |m| # Check for class naming collisions. m.class_collisions controller_class_path, "#{controller_class_name}Controller",
2007 Nov 08
5
Rails byte-range request support
Hi, I''m trying to serve the iPhone a video file from my controller using send_file. However, it appears as thought the iPhone requires byte- range request support and rails doesn''t seem to support this. If I give the iPhone a url that points to an actual file (i.e. it''s served by my webserver nginx, instead of rails) it downloads and plays it fine. Here is the proof
2007 May 22
4
Rails API is not well defined
Although somewhat new, I continue to struggle with passing the right parameters to the Rails methods despite making direct reference to the documentation. For example, I want to create a form: form_tag :action => ''deliver'', :id => @event.id, :class => ''entry'' The class doesn''t show up. I''ve tried various combinations of hash
2006 Sep 03
0
Plugin: modules or generators?
Hi, I''m writing a plugin (my first) that adds question validation support (alternative to captchas). I''m obviously gonna need to provide a generator for the migration of the questions table, I''m just not sure if I should generate the model too or just leave it in the plugin. If I do leave the model in the plugin then won''t I also have to hardcode to table name
2008 Mar 17
0
TextMate bundle problems with generators
i''ve got the new peepcode episode on using textmate with rails 2. i used git to get the bundle and reloaded everything, but now when i use the command to pull up the generator window, it acts like it works fine and asks me the name of the model i want to generate. after pressing Ok, it says that my model was generated but nothing happens and no new files are added to the project. is
2007 Mar 02
1
smbfs gzip/bzip2 "File too large"?
I wrote a python script wrapping find & tar to do full/diff/increment backup for the system. For example, my configuration like this: # cat /etc/new/fs_backup.config fields = "identity, type, time, archive"; default = "full"; type = "${default}"; # comment datadir = "/mnt/host/fs_backup/"; table = "$datadir/.table"; tsfmt =
2017 Sep 08
2
retrieve machine password in current Samba?
> -----Original Message----- > From: Andrew Bartlett [mailto:abartlet at samba.org] > Sent: Thursday, September 7, 2017 3:41 PM > To: James Zuelow; samba at lists.samba.org > Subject: Re: [Samba] retrieve machine password in current Samba? -- >8 -- snip -- 8< -- > I've looked into this, and I don't think we have changed the format, it is just that > we stopped
2009 Jan 17
1
samba documentation error
Hello I found an issue with samba documentation on the website and in the source archive. The document states to use "-B" with winbindd. There is not a "-B" option for winbindd... I think it was intended to be "-D" ? [root@server source]# /usr/local/samba/sbin/winbindd -B Invalid option -B: unknown option Usage: winbindd [-?] [-?SFDinV] [-?|--help] [--usage]