SV: [Rails] Is it a good idea for me to learn Ruby on Rails?

2012-08-30 Thread Brynjolfur Thorvardsson
Go with .php and MySQL programming directly to begin with, incorporating CSS, JQuery etc. Once you're comfortable with that, have a look at Rails. Fra: rubyonrails-talk@googlegroups.com [mailto:rubyonrails-talk@googlegroups.com] På vegne af ACK Sendt: 30. august 2012 13:07 Til: rubyonrails-talk@

SV: [Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-26 Thread Brynjolfur Thorvardsson
I can sympathise with Kevin and find his experience similar to my own. Whether his recommendations make any sense ... I'm not so sure ... I've been involved in programming and computers for way too long, but in an intermittent manner, with gaps of years doing something totally different followe

SV: [Rails] Re: Completely, absolutely and totally new...

2012-03-20 Thread Brynjolfur Thorvardsson
Well, the point (as IanJ also made) is that you have to do one thing at a time. Learn the language (Ruby), learn the quirks and conventions of Rails, learn to test and debug the hard way. Then add integrated testing. It's a steep learning curve, just learning how to program. If you don't develop

SV: [Rails] Completely, absolutely and totally new...

2012-03-20 Thread Brynjolfur Thorvardsson
@googlegroups.com [mailto:rubyonrails-talk@googlegroups.com] På vegne af Colin Law Sendt: 20. marts 2012 10:31 Til: rubyonrails-talk@googlegroups.com Emne: Re: [Rails] Completely, absolutely and totally new... On 20 March 2012 06:08, Brynjolfur Thorvardsson wrote: > Hi, you could also try following t

SV: [Rails] Completely, absolutely and totally new...

2012-03-19 Thread Brynjolfur Thorvardsson
Hi, you could also try following this book: http://ruby.railstutorial.org/chapters/rails-3-1 Given your minimal knowledge of programming, it's probably best if you skip all the testing parts (which take up more than half) and concentrate on coding. -Oprindelig meddelelse- Fra: rubyonrai

SV: [Rails] Problems with background-* - css

2012-02-22 Thread Brynjolfur Thorvardsson
Hi, sorry I should have read your post properly. I've had similar problems, the path to the images is not what you think it should be! The point about adding .erb or .css is that you can use embedded Ruby, and call Rails helpers such as imagetag(). Or you could experiment with the path to find o

SV: [Rails] Problems with background-* - css

2012-02-22 Thread Brynjolfur Thorvardsson
If you add .erb to the file (.css.erb) Rails will parse it before rendering. -Oprindelig meddelelse- Fra: rubyonrails-talk@googlegroups.com [mailto:rubyonrails-talk@googlegroups.com] På vegne af Felipe Pieretti Umpierre Sendt: 22. februar 2012 22:20 Til: rubyonrails-talk@googlegroups.com

SV: [Rails] Can't complete the Getting Started tutorial due to ExecJS::RuntimeError in Home#index

2012-02-06 Thread Brynjolfur Thorvardsson
Your error message isn't very informative! Do you have a javascript runtime installed? You can try: $sudo apt-get install nodejs Or adding gem 'therubyracer', '>=0.8.2' to your Gemfile, then run bundle install. http://www.jamiestarke.com/2012/01/28/fixed-execjs-runtimeerror-and-fatal-error-v

[Rails] Restart production logging

2012-01-24 Thread Brynjolfur Thorvardsson
Hi all I've taking over the managing of a Rails system (v. 1.2.3) that has been writing to production.log for several years now, and the log had grown to 16 Gb, taking up half the server disc space. I removed the logfile, doing: $sudo mv production.log production.log.old $sudo touch production

SV: [Rails] Accessing the ROR Application

2012-01-16 Thread Brynjolfur Thorvardsson
Hi, I think what you are asking is how to find out your machines IP address and then you use a webbrowser on the same (or another) machine to access your application. In CentOS, give the command $/sbin/ifconfig, to see your IP address. Open a browser and type your IP address followed by :3006 (

SV: [Rails] Duplicate forms after click

2012-01-06 Thread Brynjolfur Thorvardsson
lto:rubyonrails-talk@googlegroups.com] På vegne af Javier Quarite Sendt: 6. januar 2012 12:44 Til: rubyonrails-talk@googlegroups.com Emne: Re: [Rails] Duplicate forms after click On Fri, Jan 6, 2012 at 2:00 AM, Brynjolfur Thorvardsson mailto:bi...@itanet.nu>> wrote: Hi, this sounds like a java

SV: [Rails] assest pipeline how to exclude some css files?

2012-01-06 Thread Brynjolfur Thorvardsson
else- Fra: rubyonrails-talk@googlegroups.com [mailto:rubyonrails-talk@googlegroups.com] På vegne af Mauro Sendt: 6. januar 2012 09:22 Til: rubyonrails-talk@googlegroups.com Emne: Re: [Rails] assest pipeline how to exclude some css files? On 6 January 2012 08:09, Brynjolfur Thorvardsson wrote: >

SV: [Rails] assest pipeline how to exclude some css files?

2012-01-05 Thread Brynjolfur Thorvardsson
Well, the easiest way would be to simply remove the files you don't want to use? You might also try using a dynamic css, if you rename your application.css to application.css.erb it will still work as before but now you can embed ruby code. If your other css files have a different ending (e.g. .

SV: [Rails] Duplicate forms after click

2012-01-05 Thread Brynjolfur Thorvardsson
Hi, this sounds like a javascript problem. Javascript is executed asynchroniously on your browser so clicking fast means that you are sending more than one submit from the same form, causing Rails to return more than once from the controller. There are probably many ways to avoid this but one is

SV: [Rails] Annoying session problem

2011-12-28 Thread Brynjolfur Thorvardsson
ng session problem On Wed, Dec 28, 2011 at 1:44 PM, Brynjolfur Thorvardsson mailto:bi...@itanet.nu>> wrote: Hi, I've just run into a very annoying session problem and judging by my failure to find anything on Google it seems that nobody else has experienced this! I'm trying to

[Rails] Annoying session problem

2011-12-28 Thread Brynjolfur Thorvardsson
Hi, I've just run into a very annoying session problem and judging by my failure to find anything on Google it seems that nobody else has experienced this! I'm trying to set a session variable in application_controller.rb, using simply: @color = "grey" session[:colors] = @color When trying to

SV: [Rails] Re: SV: Simple friendship table

2011-12-23 Thread Brynjolfur Thorvardsson
A simple way would be to just call .find_by_sql() On the other hand, if you create a view in MySQL to handle the query, say the view is called "friends", then you should be able to create a model like this: app/models/friend.rb class Friend < ActiveRecord::Base end Obviously, depending on the

SV: [Rails] Re: SV: Simple friendship table

2011-12-23 Thread Brynjolfur Thorvardsson
meddelelse- Fra: rubyonrails-talk@googlegroups.com [mailto:rubyonrails-talk@googlegroups.com] På vegne af Fresh Mix Sendt: 22. december 2011 21:33 Til: rubyonrails-talk@googlegroups.com Emne: [Rails] Re: SV: Simple friendship table Brynjolfur Thorvardsson wrote in post #1037658: > (SELEC

SV: [Rails] Active Record and SQL Server

2011-12-21 Thread Brynjolfur Thorvardsson
Maybe a simple solution would be to create a view in SQL Server and a model based on that view in Rails? -Oprindelig meddelelse- Fra: rubyonrails-talk@googlegroups.com [mailto:rubyonrails-talk@googlegroups.com] På vegne af Michael M. Sendt: 21. december 2011 15:47 Til: rubyonrails-talk@g

SV: [Rails] Simple friendship table

2011-12-21 Thread Brynjolfur Thorvardsson
ith uid2=1 -Oprindelig meddelelse- Fra: rubyonrails-talk@googlegroups.com [mailto:rubyonrails-talk@googlegroups.com] På vegne af Brynjolfur Thorvardsson Sendt: 21. december 2011 13:02 Til: rubyonrails-talk@googlegroups.com Emne: SV: [Rails] Simple friendship table Hi, you only need on

SV: [Rails] Simple friendship table

2011-12-21 Thread Brynjolfur Thorvardsson
Hi, you only need one entry per friendship (where, for extra functionality, the first id could always be the one who initiated the friendship). Friendships table could be something like have (uid1, uid2, status). Probably put first two as primary key. To find ids of all friends of user 1 you wou

SV: [Rails] Stack Level Too Deep Error (can't seem to figure it out)

2011-12-17 Thread Brynjolfur Thorvardsson
t: 17. december 2011 10:56 Til: rubyonrails-talk@googlegroups.com Emne: Re: [Rails] Stack Level Too Deep Error (can't seem to figure it out) On 17 December 2011 09:10, Brynjolfur Thorvardsson wrote: > Hi Vell, good to hear you've got your site working! The error you are getting &g

SV: [Rails] Stack Level Too Deep Error (can't seem to figure it out)

2011-12-17 Thread Brynjolfur Thorvardsson
Hi Vell, good to hear you've got your site working! The error you are getting is caused by Rails getting stuck in an endless loop with the resulting stack overflow. You are probably redirecting from your page to your controller which is redirecting to the same page which is redirecting to the co

SV: [Rails] Displaying videos

2011-12-15 Thread Brynjolfur Thorvardsson
Hi MUMU You probably don't mean grab "all" the videos ... but you can get one at a time by using freeware to record the video and store it on your disk. Check out http://www.recordyoutube.com/ . -Oprindelig meddelelse- Fra: rubyonrails-talk@googlegroups.com [mailto:rubyonrails-talk@goo

SV: [Rails] Re: How can I get RVM/Passenger/Apache2 to play nicely together

2011-12-15 Thread Brynjolfur Thorvardsson
-talk@googlegroups.com] På vegne af Brynjolfur Thorvardsson Sendt: 15. december 2011 21:55 Til: rubyonrails-talk@googlegroups.com Emne: SV: [Rails] Re: How can I get RVM/Passenger/Apache2 to play nicely together Hi, I forgot one thing that you might need to do. When using a symlink I think you need to add

SV: [Rails] Re: How can I get RVM/Passenger/Apache2 to play nicely together

2011-12-15 Thread Brynjolfur Thorvardsson
the index.html file from the application and created a model > called "me": > > bundle exec rails generate scaffold me email:string bundle exec > rake:migrate > > when I then try to go tohttp://localhost/mesI get the requested URL / > site/mes was not fo

SV: [Rails] Re: How can I get RVM/Passenger/Apache2 to play nicely together

2011-12-15 Thread Brynjolfur Thorvardsson
link is only pointing at public? I removed the index.html file from the application and created a model called "me": bundle exec rails generate scaffold me email:string bundle exec rake:migrate when I then try to go to http://localhost/mes I get the requested URL / site/mes was not

SV: [Rails] Re: How can I get RVM/Passenger/Apache2 to play nicely together

2011-12-15 Thread Brynjolfur Thorvardsson
Vell, with your setup as far as I can see, you can without changing the apache site and localhost files at all. You can create a symbolic link from your /var/www directory to your Rails directory, something along these lines: $sudo ln -s /home/vmcilwain/www/site/public /var/www/site Now, if yo

SV: [Rails] Re: How can I get RVM/Passenger/Apache2 to play nicely together

2011-12-14 Thread Brynjolfur Thorvardsson
Hi Vell Doing a reinstall might well save you a lot of hassle. In my last install I used sudo all the way through (the server is a test server for an eventual production server) and no RVM since I was only going to use Ruby 1.9.2 (like you). I wrote down all the steps during the install and thi

SV: [Rails] Re: How can I get RVM/Passenger/Apache2 to play nicely together

2011-12-14 Thread Brynjolfur Thorvardsson
ons All AllowOverride All Order allow,deny Allow from all RewriteEngine On # Remove the www RewriteCond %{HTTP_HOST} ^vell$ [NC] RewriteRule ^(.*)$ http://vell/$1 [R=301,L] On Dec 14, 3:25 am, Brynjolfur Thorvardsson wrote: > Have you told Apache where to find your applic

SV: [Rails] How can I get RVM/Passenger/Apache2 to play nicely together

2011-12-14 Thread Brynjolfur Thorvardsson
Have you told Apache where to find your application? -Oprindelig meddelelse- Fra: rubyonrails-talk@googlegroups.com [mailto:rubyonrails-talk@googlegroups.com] På vegne af Vell Sendt: 14. december 2011 04:53 Til: Ruby on Rails: Talk Emne: [Rails] How can I get RVM/Passenger/Apache2 to play

[Rails] Adhearsion examples?

2011-12-11 Thread Brynjolfur Thorvardsson
Hi all I'm hoping to play around with Rails and Adhearsion but I find it very hard to get started. Does anybody know about a good starting point on the web or perhaps an example application code, perhaps on git? Thanks in advance Binni ITAnet Kirkestien 20 9230 Svenstrup Telefon: 3020 0868

SV: [Rails] file upload

2011-11-30 Thread Brynjolfur Thorvardsson
You should probably be using sessions, check http://apidock.com/rails/ActionController/Integration/Sessionfor version 2.3.8 and older (I don't think there is a version 2.3.9?). Fra: rubyonrails-talk@googlegroups.com [mailto:rubyonrails-talk@googlegroups.com] På vegne af Annapoorna R Sendt: