Programming :: Ruby On Rails - Getting Started?

Jun 28, 2010

I'm going through the Beta version of "Agile Web Development with Rails - 4th Edition". But I'm having difficulty with initial configuration on my Gentoo box. I started like so, basically following the book:

Code:
$ rails testrails
$ cd testrails
$ script/generate controller Say hello goodbye

[Code]...

View 3 Replies


ADVERTISEMENT

General :: Ruby On Rails - Cron Job Not Working

Oct 5, 2010

It is little weird now that cron job is not working as i have set. I have set weekly job to send email but i am receiving multiple emails daily. Below is my code; # sends email every monday at 4:00 am 00 04 * * 1 /usr/bin/ruby /home/mbm/www/current/script/runner /home/mbm/www/current/app/models/add_to_delayed_job.rb -e production

00 -> Minutes
04 -> Hours (0-24)
1 -> Days / 0-6 / Sun - Sat

Sending email is fine but the time is not working so far as set.

View 2 Replies View Related

Ubuntu :: Ruby / Rails Syntax Highlighting

Jun 8, 2010

The site that used to host the language spec file for .erb/.rhtml for ruby/rails syntax highlighting is no more.If someone could attach the file for gtksourceview-2.It's located in /usr/share/gtksourceview-2.0/ language-specs/ and probably called rhtml.lang

View 2 Replies View Related

Ubuntu :: Ruby On Rails Version Fail / What To Do?

Jan 18, 2011

I want to try test ruby on rails application on a virtual ubuntu server. But I didn't work for me.
What did i tried Code code...

What do I wrong, rubygems still 1.3.5 and is not updated...
What must I do?

View 1 Replies View Related

Ubuntu Installation :: Can't Install Ruby On Rails / Solve This?

Mar 23, 2010

I'm trying to install ruby on rails on Ubuntu 9.10. I'm following the instructions on this site:
http://castilho.biz/blog/2009/11/05/...-karmic-koala/

However, when I try to install Rails I get an error code...

It seems like gem can't access http://gems.rubyforge.org/gems/rake-0.8.7.gem for some reason, but when I try to go directly to that address I get the option to download it. Any ideas how to get around this problem?

I'm thinking if I can somehow tell gem to look for the file locally I can download it and install rails that way.

View 3 Replies View Related

Software :: Looking For Ruby On Rails Development Firms In India?

Jan 29, 2010

We're looking for a top-notch Ruby on Rails development firm in India.

View 2 Replies View Related

Ubuntu Servers :: Ruby On Rails - Redmine - FATAL: Password Authentication Failed?

Jun 30, 2011

When I try and access redmine from the webbrowser i get an error:

Code:
FATAL: password authentication failed for user "redmine" FATAL: password authentication failed for user "redmine" (PGError)

[code]....

View 7 Replies View Related

Red Hat :: Turning Ruby On Rails Ubuntu Command Into Redhat Command

Dec 2, 2008

I'm the noobiest noob you'll find on here. I'm having trouble getting ruby on rails to work with mysql on redhat. So on their forum I asked how to install the latest "sqlite" database package on linux.They told me to run.Now, I don't think I need "sudo" because I am the root user on my database, and I don't think I can use "apt-get" because I'm using redhat, not ubuntu.

1) Is there a way of running the above command on redhat? (A redhat command for installing things?)

2) How can I be sure I'm using redhat and not some other OS?

View 1 Replies View Related

CentOS 5 :: How To Install Ruby On Rails 1.9.2 On Centos 5.5

Dec 14, 2010

how to install Ruby on Rails 1.9.2 on Centos 5.5? My searches turned up dead ends (and installation scripts that did not work).

View 2 Replies View Related

Software :: Ruby Hangs When Started From Command Line / Solve This?

Jun 24, 2011

I am attempting to start ruby in interactive mode from the command line. However, when I type ruby at the command line, it simply hangs. I know that I have ruby installed. Any ideas as to how to resolve this problem.

View 2 Replies View Related

Programming :: Rails: No Path For Link_to

Jun 30, 2010

I'm still going through "Agile Web Development with Rails" (Beta version), and I'm confused as to why some code in the book is not working for me. Following their example code in the book, I created code like so:

Code:

$ rails demo
# ...
$ cd demo/
$ script/generate controller Say index hello goodbye
exists app/controllers/

[code]...

After starting the server, I can view the index view and the other views just fine. But then I have trouble if I add this code to any of the view html templates:

Code:

<p><%= link_to "Hello", say_hello_path %></p>

I'm told this is supposed to generate a link to the say/hello view. But instead I get an error message like so:

Code:

undefined local variable or method `say_hello_path' for #<ActionView::Base:0xb6ce3090>
If I edit it to

Code:

<p><%= link_to "Hello", Say_hello_path %></p>

then I get

Code:

uninitialized constant ActionView::Base::CompiledTemplates::Say_hello_path

But I haven't noticed anything in the book so far indicating that I am supposed to initialize these constants or how I am supposed to do it.

View 1 Replies View Related

Ubuntu Multimedia :: Rubyripper - Lucid Ruby 1.8 / 1.9 / Libgtk2-ruby?

Apr 26, 2010

I've been using rubyripper quite happily on Karmic, now I've moved to Lucid and discovered a bit of an issue. rubyripper will pause for several minutes between tracks with ruby 1.8. If I upgrade to ruby 1.9.1 the gui client won't run due to an issue with libgtk2-ruby not being available for 1.9.1.

The cli version of rubyripper under 1.9.1 is blazingly fast, so that is what I'm using at the moment, but I do prefer the gui.

Anyone have any insight into this? Googling suggests there may be a bug in ruby 1.8.7 that caused the long pauses, but it was supposed to have been fixed in 1.8.7.249 i.e. the default Lucid version.

View 8 Replies View Related

Software :: Interactive Ruby Shell - Irb - Have Ruby But No Irb?

Oct 22, 2010

There are a few things not working properly. Ruby version manager seems ok but untill i get working with ruby i don't know if it is working properly. One thing that is not there is irb Interactive ruby is not available according the the message i get.

Well i have no idea what readline is but i did everything that is on that webpage referance page [url]. I have got a lot of progress and learned heaps about linux shell and bash terminal. The thing is i need to get this going and have tried feenode but it is very foreign and how it works i do not have a clue. I have got 2 things resolved so far through this forum but using other threads in it. i need to get irb going before i can progress to using ruby on Rails properly.

I am using a Eeepc running ubuntu easy peasy its version 9.04 of ubuntu. I need the whole of rails to work and want to get a handle on using ruby version manager along with the apache stack with mysql/phpmyadmin and am using this as a dummy run for setting up a development system.

View 2 Replies View Related

Programming :: Some Popular Web Applications That Use Ruby?

Dec 12, 2010

What are some popular web applications that I've seen that use ruby?

View 1 Replies View Related

Programming :: Error In Ruby Program

Nov 18, 2010

I have the following code:

Code:

And it gives this error:

Code:

View 2 Replies View Related

Programming :: [OSX] Shell Hangs / Get Started It?

Jan 14, 2010

When I start my shell it hangs (somehow, it's being put to sleep) and I always have to control-cancel the shell before using it. Anyone know of a way to figure out what gets started on a typical shell session?

View 1 Replies View Related

Ubuntu :: No Sound In KDE When Started By Startx While Working Fine When Started By Kdm/gdm

Dec 14, 2010

I recently installed KDE in my ubuntu 10.10. To access KDE, I want to use
startx /usr/bin/startkdeBut using it disables sound in KDE (Sound is working fine in GNOME). It doesn't sound for anything like login sound, totem, mplayer or any other playerBut when I press Alt+Ctrl+F1 to change to virtual console, the playback resumes from where it was in time and when coming back Alt+Ctrl+F7 and the time in totem (or any other player) doesn't move. While log out also it doesn't play logout sound and doesn't logout, so I have to press Ctrl+Alt+F1 so that logout sound play then it exits.When starting KDE by kdm or gdm, the sound works normally. But I don't want to login again using kdm or gdm and not to use root user to start kdm or gdm.I don't know what is the difference between when KDE is started by startx or by kdm/gdm where the same user login in kdm/gdm as that for startx

View 2 Replies View Related

Programming :: Get Started With Making 'a SIMPLE Dock'?

Mar 22, 2011

This is probably hopelessly ambitious as I'm not a C or C++ programmer (I normally like to stick to scripting languages like BASH or Perl). Basically I'm looking on good advice to get me started with writing a Application Dock with the functionality of the OSX dock but without the overly flamboyant graphics that have characterised the Linux versions.At the moment the closest I've found to what I would like is bbdock. However it falls well short of the functionality of what I would like.

What bbdock does is read a file to create an icon for the openbox dock/fluxbox slit/wmaker whatever that launches an application when first clicked, shows an little arrow when the application is running, and brings the application to the fore when clicked once running.Here's a screenshot of it doing just that.The drawback to bbdock is that it doesn't really look for running applications, only those launched from bbdock. So for example it wont notice if I've launched an instance of pcmanfm from the openbox menu. And therefore it obviously also doesn't add icons for other applications that are running.

What I would like to be able to do is detect new running applications and add a bbdock icon for them. Also to detect if an application already with a shortcut has been run and update it's status to show it's open. Probably have an up and down arrow to move the icons up and down when there are too many to fit on the screen. None of the above needs fancy animation. The fade to gray effect used by bbdock is quite nice and could probably be augmented with a fade in and out to grey to represent another action, say fading to grey and back when launching and greyed when iconified.So, my question is what do I need to get started doing this? Am I best using the pretty outdated bbdock wmaker dockapp style? What functions and libraries am I likely to need to achieve the effects I want? Are there any examples of how to monitor running applications (well windows and figure out what constitutes a new application) that I could look at for inspiration. Is there anyone who's into C++ for linux who would be interested in helping me out to get this small project working?

View 8 Replies View Related

Programming :: Dynamic (kernel) Timer Never Is Started Again

Jan 26, 2010

My system: Ubuntu 2.6.31. Language C, compiler: gcc I am running dynamic timer as a kernel module and my issue is that the once the timer overflows, the program finishes. On the other hand i have forced to arm the timer again because of a while loop but the timer never is started again. i am targetting a periodic timer but it runs once and thats it.

[Code]...

View 1 Replies View Related

Programming :: Make System Call From An Automatically Started Daemon?

Apr 2, 2011

i've written small tool in C which makes measurements on my router (OpenWrt White Russian).

It is working as a deamon. If the tool is started manually, everything works fine. If it is started per script on startup, the following system call doesn't work :

Code: sprintf(command,"/bin/cat /root/%s%s | /usr/bin/ssh -p2222 user(at)host -i /root/.ssh/id_rsa "/bin/cat >> result/%s%s"", apmac, source, apmac, dest);

rc = system (command); the returned rc in this case is 256.

first i thought it is a problems with the user rights for the tool, so i have added +s to it. but that didn't help. as i said, when the daemon is started by hand, the system call works fine.

View 1 Replies View Related

Ubuntu :: How To Remove App From Rails 3

Sep 7, 2010

knows how to remove an app (or in this case, a test/learning app) from Rails 3?I could just delete the folder, but I'm worried it will leave annoying residual files around that I will never find (database, server, configurations, etc...).Especially since I'm new to linux, I don't even know how to be aware of what files may have been generated/changed as a result of making a new rails app.

View 2 Replies View Related

General :: Error Installing Rails 3.0.1 (File Not Found)

Feb 17, 2011

I am trying to install rails 3.0.1 on ubuntu 10.10. I am getting this error towards the end when i execute this command sudo gem install rails --version 3.0.1.

View 1 Replies View Related

Fedora :: Install Ruby 1.9.2 In F14?

Dec 19, 2010

Is there a way to install ruby on Fedora 14?

View 1 Replies View Related

Fedora :: Can't Install Mysql Gem On Ruby?

May 29, 2010

Everytime I tru to install that gem with gem install mysql I get this output :

[CODE]
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for mysql_ssl_set()... no

[Code]...

View 4 Replies View Related

OpenSUSE :: Install The Rmagick Gem Under Ruby Ree-1.8.7?

Jul 30, 2010

I would like to install the rmagick gem under ruby ree-1.8.7. Like every time, the installation routine does complain about two different version being installed which are actually the same. I have every, really every imagemagick package installed:

Code:
ImageMagick-6.6.1.0-3.8.i586
GraphicsMagick-1.3.12-1.15.i586
libMagick++3-6.6.1.0-3.8.i586
libGraphicsMagick3-1.3.12-1.15.i586

[Code]...

View 2 Replies View Related

General :: Can't Get Ruby To Update Properly

Aug 11, 2010

(Using Archlinux) I downloaded Ruby 1.8.7-174 a while ago and installed it via the tarball (not pacman). I was trying to update to 1.8.7-299, but I can't get it to work. Per the readme, I do the following steps, all of which complete without error:

./configure
make
make install

After install finishes however, I still have -174 installed instead of -299.

View 1 Replies View Related

Ubuntu :: Stuck With Ruby On Terminal?

Jun 28, 2010

Terminal, I type ruby, I hit enter, and nothing happens. I'm given a blank line that I can type and enter, and again, nothing happens. I'm stuck, is there a way to fix this without closing the terminal window?

View 1 Replies View Related

Slackware :: Can't Install 'rmagick' Ruby Gem?

Jan 3, 2011

Has anyone been able to successfully install rmagick on slackware 13.1? On both my systems (one multilib and one 32-bit), it complains about having a 'partial' ImageMagick install!

Code:
$ sudo gem install rmagick
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.

[Code]...

View 4 Replies View Related

Slackware :: Qt4 And Plasma Ruby Bindings

Jun 4, 2010

I've slackware 13.1 and anytime I try the following commands in irb:

Code:

require 'rubygems'
require 'Qt4'

or

Code:

require 'rubygems'
require 'plasma_applet'

i receive the following error:

LoadError: no such file to load -- Qt4
LoadError: no such file to load -- plasma_applet

now I'm wondering what packages or gems I need to make it work?

View 3 Replies View Related

CentOS 5 :: Installing Mysql Ruby Gem On 64-bit?

Aug 18, 2009

I have a problem installing mysql ruby gem on 64bit CentOS machine.

[jacekb@vitaidealn ~]$ uname -a
Linux vitaidealn.local 2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved