Ruby on Rails

I tried to follow the Ruby on Rails example post by Apple but it simply didn't work. I got the server started but the SQL migration didn't work. Has anybody made this work or been able to get through the "tutorial?"

Thanks. It is hard to describe exactly what doesn't work, but I will try. I get to the point in the tutorial where the server is up and running, I get Textmate running, but I keep having trouble with MySQL. I have installed MySQL 5.0.5 but at one point I got a screen that said I was using SQLite3. I think that came with some Apple package. I don't know how to "look at that particular section of the config/database.yml file." Nor how to modify it per the tutorial. "mysqladmin" commands generate an error message saying they can't be found. It seems that I have environmental issues. Of course, the "golden path installation guide," Locomotive, has been removed from circulation. So, I think that the tutorial assumes things will be done for you by installing Locomotive and that can't happen. I can't even get to the sample application.
Does this help in analyzing my problem?

Similar Messages

  • Ruby on Rails Concurrent program registration in EBS 11i

    hi everyone
    I'm trying to see if it is possible to register a Ruby on Rails concurrent program in Oracle E-business Suite 11i applications. We have Ruby on the Rail program we are using to create a GL Daily Rates file into one of our Custom top directory. Our intention is to create a request set that includes this Ruby on Rails program and SQL*Loader program that loads the data into staging table before data is uploaded to the GL_Daily_Rates_Interface.
    I have seen that the execution method for Ruby on Rails does not exist in 11i and have tried to use perl but without success.
    Any help will be much appreciated.
    Thanks in advance.
    Leo

    This is Oracle Application Server forum. Oracle Apps (EBS) forums are here:
    http://forums.oracle.com/forums/category.jspa?categoryID=3

  • Ruby on rails in archlinux bootstrap instalation

    I have 6 servers that were migrated from CentOS to Archlinux. They run apache with ruby on rails. The installations were done via bootstrap with one exception. In all they had to have them installed via bootstrap error "invalid byte sequence in US-ASCII ". I created a debug to see what is happening because the whole application runs on UTF-8. I noticed that the servers installed with bootstrap changed the environment variables, these changes occurred with the application running.
    before the error
    ENV inspect {"XDG_DATA_HOME"=>"/root/.local/share", "GEM_HOME"=>"/usr/lib/ruby/gems/1.9.1", "TERM"=>"xterm", "SHELL"=>"/bin/bash", "SSH_CLIENT"=>"***.**.** 45873 22", "OLDPWD"=>"/home/fusion-apps/minika.objectdata.com.br/rails", "SSH_TTY"=>"/dev/pts/0", "USER"=>"mongrel", "XDG_CONFIG_DIRS"=>"/etc/xdg", "MAIL"=>"/var/mail/root", "PATH"=>"/usr/lib/ruby/gems/1.9.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl", "PWD"=>"/home/fusion-apps/minika.objectdata.com.br/rails", "LANG"=>"pt_BR.UTF-8", "PS3"=>"> ", "SHLVL"=>"3", "PS4"=>"+ ", "HOME"=>"/home/mongrel", "XDG_CONFIG_HOME"=>"/root/.config", "BUNDLE_GEMFILE"=>"/home/fusion-apps/minika.objectdata.com.br/rails/Gemfile", "XDG_CACHE_HOME"=>"/root/.cache", "LOGNAME"=>"mongrel", "XDG_DATA_DIRS"=>"/usr/share/:/usr/local/share/", "SSH_CONNECTION"=>"201.95.50.68 45873 192.168.0.200 22", "GEM_PATH"=>"", "PROMPT_COMMAND"=>"echo -ne \"\\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\\007\"", "RUBYOPT"=>"-I/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib -rbundler/setup", "BUNDLE_BIN_PATH"=>"/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/bin/bundle", "G_BROKEN_FILENAMES"=>"1", "_"=>"/usr/bin/bundle", "RAILS_ENV"=>"production"}
    $LANG => pt_BR.UTF-8
    after error
    ENV inspect {"GEM_HOME"=>"/usr/lib/ruby/gems/1.9.1", "SHELL"=>"/bin/bash", "SSH_CLIENT"=>"***.**.** 12975 22", "OLDPWD"=>"/home/fusion-apps/minika.objectdata.com.br/rails", "USER"=>"mongrel", "MAIL"=>"/var/mail/root", "PATH"=>"/usr/lib/ruby/gems/1.9.1/bin:/usr/bin:/bin:/usr/sbin:/sbin", "PWD"=>"/home/fusion-apps/minika.objectdata.com.br/rails", "SHLVL"=>"3", "HOME"=>"/home/mongrel", "BUNDLE_GEMFILE"=>"/home/fusion-apps/minika.objectdata.com.br/rails/Gemfile", "LOGNAME"=>"mongrel", "SSH_CONNECTION"=>"189.111.110.78 12975 192.168.0.200 22", "GEM_PATH"=>"", "RUBYOPT"=>"-I/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib -rbundler/setup", "BUNDLE_BIN_PATH"=>"/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/bin/bundle", "_"=>"/usr/bin/bundle", "RAILS_ENV"=>"production"}
    $LANG =>
    The frequency of the error is one of the servers is 30 in 30 minutes, which made me disable syslog and crontab, but still not resolved, the others are one time during the day or at night.
    As I said, the facilities with Centos or Arch with CD do not present problems.
    Last edited by ariveira (2011-05-20 13:26:14)

    One topic, bootstrap install usage http://arm.konnichi.com/2010/10/18/ repo because limit of Centos, after pacman -Suy

  • Launching Edge code thru terminal for Ruby on Rails

    hello
    i am studying ruby on rails programming.  i just started and I am new to alot things about it.
    The tutorials im watching say to use sublime text or some other one.  if it makes sense i would like to use edge code because i come from a design background and i trust adobe have the best features by the end of the game.
    so in the tutorials they used this command to conect the terminal work we've been studying to sublime text
    ln -s /Aplplications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl usr/local/bin/subl
    and allowed him the edit his .bash_profile in sublime text simply by typing
    subl .bash_profile
    Im curious to see if there is an equivalent to this for edge code.  or am i trying to use the wrong app for ruby on rails?

    There is not a way to open a file via the command line with Edge Code (or
    Brackets) yet, but you can at least right click on a file and do Open With.
    In terms of 'does it make sense to write Ruby code with Edge Code', I can't
    answer that. I use Brackets for all my front end code, and Node.js stuff on
    the back, but not for any ColdFusion work I do. Best I can suggest is just
    to try it out and let us know how it works.

  • Any Extension for Ruby On Rails on DW

    Hello,
    I am planning to quit PHP and start developing in Ruby on
    Rails. Their MVC model is really great and plus MS has also
    appreciated this model and getting this implemented in new Orcas
    Model ( New Asp.net 3.5 version ).
    Ruby really beats every one since its totally OOP and plus it
    offers more powerful features than PHP5 and Easily fights with
    asp.net in power.
    Ruby on Rails is the future. I need to practice this on DW8
    can any one prpvide me a working Extension for Ruby.
    Thanks

    Ruby doesn't even come close to the .NET framework. That is
    just wishful thinking.
    Anyways, here is a link:
    http://rubyweaver.gilluminate.com/

  • New wiki page on Ruby on Rails

    Hi,
    Just wanted to let you know that I created a Ruby on Rails page on the
    wiki. It's not really long but the basis is there to quickly set up a
    rails application.
    http://wiki.archlinux.org/index.php/RubyOnRails
    As always, please feel free to comment and edit the wiki.
    ekse

    Hi,
    It is a really nice idea. Maybe the page ought to serve as a hub for other articles.
    A couple of comments on sharing medias:
    * I have not been very happy with upnp. I used it for a while when I had a Synology NAS, but the fact that it seemed to rely on some kind of index made it less attractive. Samba has treated me nice; it always works (as oppose to "real" Windows shares which is a drag to setup).  I use samba for sharing videos and pictures to XMBC4Xbox.
    * For streaming live audio output, i.e. what is playing *right now* on my laptop to my stero, I have found a combo of icecast, pulseaudio and gstream to work nice. For serving static audio files I use squeezeboxserver. Had I used a Sonos sound system I would have used Samba again.
    * For PS3, which is a somewhat limited device, there is a nice java application that takes care of everything.
    * What I really miss is some way to preserve metatags when downloading video podcasts. To me it does not matter much at the moment as xbmc does not support local rss feeds. . . 
    I could add some comments on some of the above if you think it fits into your article.
    --Rasmus

  • Help with Ruby on Rails and mysql - I just don't get the terminal...

    Let me just start by saying I'm pretty new to using the terminal and unix commands. I've been trying to teach myself how to use Ruby on Rails (ror) over the pasy couple of days and have had some luck but I'm struggling with the terminal.
    For instance, when starting a new ror project I need to use the terminal to creat a new database schema (I think this the right terminology) within mysql. The tutorials I'm using suggest that I use the terminal to create the database with a command like:
    mysqladmin -u root -p create expenses_development
    no matter how I try I cannot seem to find the way to make this work. I contunue to switch directories in the terminal, but am not getting anywhere. Can someone shed some light on where I could be going wrong?
    thanks in advance
    MacBook Pro Core 2 Duo 2.33 Mac OS X (10.4.8) 2 GB RAM

    okay, that helped. Here's what I get:
    erik-petersons-computer:/usr/local/mysql/bin erikpeterson$ ls
    comp_err mysql_zap
    makesharedlibdistribution mysqlaccess
    makewin_bindist mysqlaccess.conf
    makewin_srcdistribution mysqladmin
    msql2mysql mysqlbinlog
    myprintdefaults mysqlbug
    myisam_ftdump mysqlcheck
    myisamchk mysqld
    myisamlog mysqld_multi
    myisampack mysqld_safe
    mysql mysqldump
    mysqlclienttest mysqldumpslow
    mysql_config mysqlhotcopy
    mysqlconvert_tableformat mysqlimport
    mysqlcreate_systemtables mysqlmanager
    mysqlexplainlog mysqlshow
    mysqlfindrows mysqltest
    mysqlfixextensions mysqltestmanager
    mysqlfix_privilegetables mysqltestmanager-pwgen
    mysqlsecureinstallation mysqltestmanagerc
    mysql_setpermission perror
    mysql_tableinfo replace
    mysqltzinfo_tosql resolvestackdump
    mysql_upgrade resolveip
    mysqlupgradeshell safe_mysqld
    mysql_waitpid
    erik-petersons-computer:/usr/local/mysql/bin erikpeterson$
    How would I create a new database from here?

  • How do I live preview a Ruby on Rails/Ember application?

    I have a Ruby on Rails application and I am under the impression that Edge Code will work with locally hosted web servers to use live preview. I have set up the project settings to use the locally hosted address: http://localhost:3000/ ... However when I use Live Preview I receive the following error.
    "Open an HTML file or make sure there is an index.html file in your project in order to launch live preview."
    I have done so and I meet the criteria but it doesn't seem to work. Does Adobe Edge Code support this feature?

    What's the file extension of the page you want to view in Live Preview? You may need to add it to the internal (not yet easily configurable) list of file extensions.
    Randy

  • Ruby on Rails with Oracle Database

    I am starting a new project that needs to produce dynamic charts and data reports on the web. I am a Java programmer and new to databases. I have heard good things about Ruby on Rails but cannot get it to work with Mac OS X and our Oracle database. I've read many, many forum posts about the lack of an Intel Client from Oracle, but would really like to know how if its possible to
    A) Get Ruby on Rails to read from an Oracle database AND
    B) Find out how to configure Locomotive (the Ruby GUI I'm using) to connect to the Oracle database.
    Thanks for any help!

    Hello Deepak,
    Thanks a lot for this great content.
    Feel feel to contact OTN editors if you want to publish new articles on Oracle Tech site.
    Tugdual Grall

  • [SOLVED]Ruby on Rails won't run with apache/passenger

    Hi I want to run Redmine, a Ruby on Rails application, on a personal server using MariaDB as the database and Apache with the Phusion Passenger module as the application platform. So far I am able to run Redmine with the default WeBrick server, but if I try to run it via Apache (http://192.168.1.5/redmine) I just get the directory index of  /usr/share/webapps/redmine. I've been running various php webapps using this apache installation without issues but my unfamiliarity with Ruby on Rails makes me unsure how to fix this. If I create a Ruby on Rails test  application as described at https://wiki.archlinux.org/index.php/Ru … figuration I get the same issue.
    Using the arch wiki articles on Ruby on Rails and Redmine, This is basically how I installed things:
    $ yaourt -S ruby1.9 rubygems1.9 nodejs redmine
    # gem-1.9 install rails
    # gem-1.9 install passenger
    /opt/ruby-1-9/ and subfolders ended up having no read/exexute permissions for 'other', probably because of my umask settings, so I changed the permissions, also because apache runs as user/group 'apache'.
    Ran the script that installs the passenger apache module:
    # /opt/ruby1.9/bin/passenger-install-apache2-module
    added to httpd.conf:
    LoadModule passenger_module /opt/ruby1.9/lib/ruby/gems/1.9.1/gems/passenger-4.0.5/libout/apache2/mod_passenger.so
    PassengerRoot /opt/ruby1.9/lib/ruby/gems/1.9.1/gems/passenger-4.0.5
    PassengerDefaultRuby /opt/ruby1.9/bin/ruby
    ServerName arch-server
    DocumentRoot /usr/share/webapps
    <Directory "/usr/share/webapps">
    # This relaxes Apache security settings.
    AllowOverride all
    Order allow,deny
    Allow from all
    # MultiViews must be turned off.
    Options -MultiViews
    </Directory>
    I checked if the passenger module is loaded, and judging from /var/log/httpd/error_log that seems the case:
    [ 2013-07-03 22:52:22.8947 28902/b7407700 agents/Watchdog/Main.cpp:440 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nobody', 'default_python' => 'python', 'default_ruby' => '/opt/ruby1.9/bin/ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_instances_per_app' => '0', 'max_pool_size' => '6', 'passenger_root' => '/opt/ruby1.9/lib/ruby/gems/1.9.1/gems/passenger-4.0.5', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_pid' => '28901', 'web_server_type' => 'apache', 'web_server_worker_gid' => '1001', 'web_server_worker_uid' => '1006' }
    [ 2013-07-03 22:52:22.9120 28905/b73bd700 agents/HelperAgent/Main.cpp:555 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.28901/generation-0/request
    [ 2013-07-03 22:52:22.9262 28902/b7407700 agents/Watchdog/Main.cpp:564 ]: All Phusion Passenger agents started!
    [ 2013-07-03 22:52:22.9266 28910/b71dd700 agents/LoggingAgent/Main.cpp:271 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.28901/generation-0/logging
    [Wed Jul 03 22:52:22 2013] [notice] Apache/2.2.24 (Unix) PHP/5.4.16 mod_ssl/2.2.24 OpenSSL/1.0.1e DAV/2 Phusion_Passenger/4.0.5 configured -- resuming normal operations
    'apachectl configtest' gives 'Syntax OK'.
    I followed the wiki on redmine (https://wiki.archlinux.org/index.php/Redmine), chose to use "bundle install" to install the required gems with only a 'production' environment. What worried me is that those gems are now in /root/.gems while the webserver runs as user 'apache'.
    I can run Redmine at 192.168.1.5:3000 without errors using:
    # ruby script/rails server webrick -e production
    But if I kill it and try via apache http://192.168.1.5/redmine I get a directory content listing.
    Last edited by rwd (2013-07-04 21:00:10)

    Thanks markocz, my use of sub-url was indeed the problem. With help from the linked article I did the following:
    # mkdir /usr/share/webapps/phusion-passenger/
    # ln -s /usr/share/webapps/redmine/public /usr/share/webapps/phusion-passenger/redmine
    # chown -R root:http /usr/share/webapps/
    # chmod -R g+rx /usr/share/webapps/
    httpd.conf now looks like this:
    LoadModule passenger_module /opt/ruby1.9/lib/ruby/gems/1.9.1/gems/passenger-4.0.5/libout/apache2/mod_passenger.so
    PassengerRoot /opt/ruby1.9/lib/ruby/gems/1.9.1/gems/passenger-4.0.5
    PassengerDefaultRuby /opt/ruby1.9/bin/ruby
    ServerName arch-server
    DocumentRoot /usr/share/webapps/phusion-passenger
    <Directory "/usr/share/webapps/phusion-passenger">
    # This relaxes Apache security settings.
    AllowOverride all
    Order allow,deny
    Allow from all
    # MultiViews must be turned off.
    Options +FollowSymLinks
    </Directory>
    RailsBaseURI /redmine
    <Directory "/usr/share/webapps/phusion-passenger/redmine">
    Options -MultiViews
    </Directory>
    Redmine now works via passenger.
    Last edited by rwd (2013-07-04 20:59:40)

  • Ruby on Rails on OSX Server

    Has any one built or have instructions for installing Ruby on Rails on OSX Server 10.4?
    Do these instructions still apply:
    http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx
    And can it play alongside Apache if you use Mongrel as the web server?

    I have been trying for the last couple of weeks to get Ruby on Rails running on OSX Server as well. I followed the instructions on the site you refer to. The whole installation proceeds just fine, I can run my RoR sites locally by running scripts/server, but when trying to access the web site I get a 403 error and the log says "Directory index forbidden by rule".
    I have followed directions from other sites regarding: installing and activating the fastcgi module, setting access rights to various folders and files, modifying the httpd.conf file to allow overwrite all and access to indexes,... No progress. I still can't get the RoR site to work.

  • Crystal report demo with ruby on rails

    Hi,
    how to integrate crystal reports with ruby on rails.
    Thanks & Regards,
    RadhaKrishna K
    Edited by: radhakrishna04 on May 6, 2010 1:43 PM

    ok

  • Problem: fcgi with ruby on rails

    hi!
    i'm working on an application using an ajax based web frontend developed with ruby on rails.
    with oracle apache's normal cgi this runs, but very slow (4+sec latency) compared to webricks.
    does anyone have some pointers how to get fastcgi to work under these circumstances?
    i'm looking for a solution on solaris.
    thanks, cornelius

    Hi,
    can you provide some error messages from the logs?

  • Ruby on Rails environment

    I have tried the Apple tutorial and Adam Blackbourne's book and website and still cannot get a functional environment started so that I can develop using Ruby on Rails. I get Ruby installed, Textmate installed, and then seem to get bogged down with Textmate and sql. I seem not to have mysql properly installed but I can't figure out what's wrong. Both these sources above refer to some great package call Locomotive that is "the golden path..." but it has been withdrawn by its author. Any ideas on how to proceed? What sources are available?

    Hi,
    I'm not sure what your stated problem is here? It seems you are describing problems with Ruby on Rails on Leopard and coincidentally with mysql based on the Apple tutorial; are these one problem or two? Please note that the tutorial is describing running mysql on server which is part of the 10.5 server package.
    I have been running Rails 2.0.2 on Leopard client which I loaded following the tutorial (once I loaded Xcode 3 on the client as well). Since Rails 2.0 comes with sqlite3 as its default database, you can be up and running on 10.5 client in short order and save your mysql for deployment. In my case I also have 10.5 Server and have been testing with Rails and reverse proxies while operating in development mode (with sqlite3). When I start porting over to Server, mysql is a service on server and has a unique configuration. So the tutorial may not be applicable if you are using it with a mysql standard type install. You can read about the server install environment of mysql at
    http://docs.info.apple.com/article.html?path=ServerAdmin/10.5/en/c6ws25.html
    Actually, Ruby on Rails 2.0.2, TextMate and Ruby-Debug form a great environment for development. Not quite an IDE on 10.5 but almost there.
    Hope this helps,
    Harry

  • Ruby on Rails, Apache2, OS X 10.5

    I cannot get Ruby on Rails to work on Apache while running OS X 10.5. I've searched the web for configurations that say they will allow ruby to work, with out any luck. Any help would be greatly appreciated.

    Thanks for both replies.
    I will look into upgrading OS X.
    I think the underlying problem is at the BT server and am chasing this with BT.

  • Ruby on Rails and Dreamweaver 8

    There were, at one time, Ruby on Rails extensions for
    DreamweaverMX, created by Rob Cameron and referred to as
    "RubyWeaver". Apparently, *those were the days*, because you can't
    find them any where now!
    Does anyone know how to use RonR with Dreamweaver? I am just
    starting out. Too poor for ColdFusion and Flex. My only other
    alternative, because I am on a Mac, is to use PHP - but I thought
    RonR was better and faster at creating database-backed web
    applications.
    Thanks for taking the time to read this!

    There were, at one time, Ruby on Rails extensions for
    DreamweaverMX, created by Rob Cameron and referred to as
    "RubyWeaver". Apparently, *those were the days*, because you can't
    find them any where now!
    Does anyone know how to use RonR with Dreamweaver? I am just
    starting out. Too poor for ColdFusion and Flex. My only other
    alternative, because I am on a Mac, is to use PHP - but I thought
    RonR was better and faster at creating database-backed web
    applications.
    Thanks for taking the time to read this!

Maybe you are looking for

  • Whatsapp on iPad mini with "Cellular"

    I have recently purchased an iPad mini wi-fi   Cellular. I want to use Whatsapp on the iPad. It is not installing. Why should this be so especially since apple has provided facility of "Cellular" and i have a cellular connection with a number? Can so

  • Backdated Changed to HR Data

    Hello, I have a question regarding HR Access using the Time administration Code (SACHZ) for authorisation. The scenario is as follows: An employee currently has a record for Infotype 0001 with Start Date 01.03.2009 and End Date 31.12.9999. Assignment

  • Question about MP3 players in Ital

    Hello!I'm an italian boy!I have some problems with my micro zen mp3, there are italian people in this forum?i'm not speak english very well!!help me help me thanksMessage Edited by Catherina-CL on 06-20-2006 09:48 AM

  • Register Level programming of the AT-DIO-32HS

    I am working with a piece of software that was written using the AT-DIO-32F card. The original programmer did NOT use the National Instruments driver with that card, but rather used a software library that allowed him to access and manipulate the reg

  • How to view Bills older than 12 months

    Does anyone know how I can view copies of my Billing statements from longer than 12 months ago online?  I am only able to see back to August 2010 and need some prior billing info back to March 2010 for business purposes.  Is this possible if I don't