similar to: Can I drop-in a Ruby script and execute it within one of my Rails pages?

Displaying 20 results from an estimated 10000 matches similar to: "Can I drop-in a Ruby script and execute it within one of my Rails pages?"

2007 Dec 18
3
First Shoot, many more to appear: Rails on Ruby 1.9
Guys, Subject says everything: http://www.frederico-araujo.com/2007/12/18/my-first-successful-booting-rails-2-0-2-ruby-1-9-attempt Even ActionView uses Proc.binding (which isn''t correctly supported in 1.9) it appears that lot of folks will try to put their hands in Ruby 1.9 when it comes out, and of course, try to get Rails with Mongrel running in it. Zed, Wayne, Evan and ry: maybe we
2008 Oct 06
1
[LLVMdev] Calling LLVM API from within an llvm::Module
Hi, I'm looking into LLVM to build a self-hosting compiler. I'm trying to understand how to call LLVM from within a compiled LLVM Module (if that's possible). As a first step I was just trying to compile some code that uses LLVM to LLVM bytecode, but can't get it to work. $ cat test.cpp #include <llvm/Module.h> int main (int argc, char const *argv[]) { llvm::Module
2008 Oct 14
4
Ruby and MySQL backup
I suspect this is not exactly a Ruby/Rails topic but I also suspect that lots of people here have already solved this issue. We have a simple app running on a SliceHost slice and we''d like to backup the database both hourly and daily to an AWS S3 account. I''ve looked around but surprisingly can''t seem to find anything that offers a complete solution for doing this. I was
2008 Apr 28
1
method redefined errors from many core ruby libs
I have a Fedora Core 6 system on which I have built ruby 1.8.6 and rubygems 1.1.1 from source, and installed rails 2.0.2 using rubygems. When I create a new rails app, I get lots of errors that look like they''re coming from internal ruby libraries. Lots of methods redefined, as if I have some duplicate code somewhere. I also get errors when generating a simple model (see below.) I
2010 Mar 22
7
How to reference a select_tag within a form
Hi All, Inside my app\views\expenses\new.html.erb file, I had the code: <% form_for(@expense) do |f| %> [snip] <p> <%= f.label :vendor %><br /> <%= f.text_field :vendor %> <br /> <div id="vendor_droplist> <%= select_tag "test", options_for_select(@current_vendors.collect { |v| v.nickname }), {:multiple
2006 Mar 05
0
Can I execute DML from within Rails?
Is it possible to execute a DML statement against a MySQL database from within Rails? I have a table I''m using for batch processing. It needs to be truncated to reset the primary key before each batch insert statement. I looked at the API here: http://api.rubyonrails.com/classes/ActiveRecord/ConnectionAdapters/DatabaseStatements.html#M000532 and didn''t notice anything that
2010 May 17
0
Unable to execute lm function within a Rscript launch in the Linux Terminal
Hello to the list I'm using a Rscript launched via the linux terminal as the title of this mail explains. The following is the code of the Rscript : myRscript.r -------------------------------- 1 #!/usr/bin/Rscript 2 3 #Read data 4 data=read.table("/home/morisseau/stage/recherche/gwas/data/CFHLC5/CFHLC_format_files_rm_07052010/output/windowstemp.txt") 5 6 data=t(data) 7
2010 Jul 05
0
Execute commands in 'R' within PERL Program
Hi, I wrote a program in PERL which creates a file with .net extension (.. xyz.net). I want to call R from within my PERL program, execute 3-line command in 'R', store the output and get back to PERL program. RSPerl is of omegahat is a good software which creates interface between R and PERL, but unfortunately it doesn't work on my Windows XP. I used the following command in PERL to
2012 May 22
1
In R, how do I execute a script that sets environment variables within the same shell session?
In R, how do I execute a script that sets environment variables within the same shell session? Hi all, Could you please shed some lights on how to do this? In a shell, I launched the R session. But then in R, I realized that some environment variables need to be set up. Of course I can use "Sys.setenv()"... But I have so many of them... And for some special reason, I have to first
2007 Sep 24
3
rcov including ruby lib
When I run spec:rcov on my continuous integration server, the rcov report is including many other libraries in the report, including some from standard lib and gems. Has anyone else had this problem or have any ideas for how to limit it just to coverage of code in app/ and lib/? Thanks, Brandon -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig
2006 Aug 02
1
mongrel to execute ruby script?
Hello, I''ve spent a couple of hours now searching for (what I thought) was pretty straightforward. I''m using mongrel together with RoR and need to execute a .rb file located in my public folder (cgi style). But mongrel just can''t do that out-of-the-box - or am I missing something? I really don''t get how I''m supposed to configure mongrel for this
2007 May 01
1
ruby execute script
Hi everyone I''m trying to use scripts like ghost script and imagemagick Can ruby call this script? I looking for something like exec("convert sample.pdf sample.jpeg") thank you -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Apr 25
1
How to drag & drop within a DIV?
Suppose some elements created using scriptaculous, and now want to add drag&drop characteristic to them,but the draggable elements can be dragged with the scope of whole browser,how to limit the draggable area within some DIV,for example the div that the elements lie in. Thanks Charlie -- Posted via http://www.ruby-forum.com/.
2005 Sep 14
2
drop down select lists within SlideDown section broken in Firefox
If I slide down a section that contains a select list, the selection box is stuck (clicking on the down arrow on the right side of the box has no effect). Works fine in IE. The javascript library is the one that comes with the latest version of rails. Chris -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Dec 18
1
Prevent drag and drop within Samba shares
Hello, Is there a parameter in smb.conf that prevent users to use drag and drop within Samba shares? I know this is a Winedow$ function, but some users (hum, hum) use Explorer to open their files and accidentally they drag and drop sometimes a directory in the root of the share to another directory in the root of the share. My samba server is member of a native W2k3 server Active Directory and
2008 Mar 11
4
Dropping Root
Hello Campers I''m not sure this is the right list to ask but: I''m using the junebug wiki (which is written in camping) for my own personal wiki. I''d like it to behave as a proper daemon, so it will start up at boot, get stopped properly at shutdown, keep a pid file in /var/run etc. This requires a little messing with the wiki script junebug makes in the wiki
2008 Feb 27
2
Prevent drag and drop within Samba shares
Hello, Is there a parameter in smb.conf that prevent users to use drag and drop within Samba shares? I know this is a Winedow$ function, but some users (hum, hum) use Explorer to open their files and accidentally they drag and drop sometimes a directory in the root of the share to another directory in the root of the share. My samba server is member of a native W2k3 server Active Directory
2006 May 25
0
Fwd: [Ruby on Rails] #5181: Autocomplete: How do i format the text in the drop down?
Howdy... How can the text be formated on the downloadable sample (\scriptaculous-js-1.6.1\test\functional\ajax_autocompleter2_test.html)? In your downloadable demo... the format of the drop down (in the txt area) is a ordered list.. where and how is this formatted? and is it possible to use a CSS on it? If so.. how would i do that? I like the formatting you have on your demo
2006 Jul 30
34
ruby suitable for financial apps?
hi there, I am about to embark on a mission critical financial web application, and was wondering weather ruby on rails is the best fit for this type of project. More specifically I am worried about floating point errors. Would it be more appropriate to use a more statically typed framework (.NET)? thankyou. -- Posted via http://www.ruby-forum.com/.
2008 Apr 09
2
Ruby on Rails drop down help
Hi, I have a really simple problem with ruby on rails. Using a basic tutorial and scaffolding I have a form with lines like this: <p><label for="user_game1">Game 1: <%= Game.find(''1'').game %></ label><br/> <%= text_field ''user'', ''game_1'' %></p> and I want to change it from a text field to a