Displaying 20 results from an estimated 1000 matches similar to: "Ruby 1.8.7 and openssl failed compile"
2010 Aug 24
11
will_paginate problem
Hi
I am using rails 2.3.8 & ruby 1.3.7 & will_paginate 2.3.14
I have table name books. I am doing this code for pagination,
In book_controller
@@@@books = Book.paginate :page => params[:page], :per_page => 10@@@@
& in index.html.erb
@@@@@<%= will_paginate @books %>@@@@@
Also added in environment.rb file this line
@@@@@ require
2010 Jul 28
3
Rails 3.0.0.rc // rails locales prevent app boot
Hi all,
I got the following error message when booting up my app (which works
fine with Rails 3.0.0.beta4) in Rails 3.0.0.rc;
activesupport-3.0.0.rc/lib/active_support/file_update_checker.rb:27:in
`stat'': can''t convert Array into String (TypeError)
When I put some debug code on that line I see the follwing array being
passed;
2010 Jul 08
3
Testing equality
Hello
How can I test equality with two objects when they include some
attribute that is BigDecimal?
if I make something like this:
it "should ...whatever" do
obj = Factory.create(:my_object)
...
MyObject.first.should == obj
end.
FAILS
This fails because the object expected is different from the object
gotten, and the only difference are the BigDecimal attributes, that are
2010 Jun 25
5
Error installing gems for Rails 3.0.0.beta4 on MacOSx
I tried to install Rails 3 Beta in my snow.leopard machine using the
command below: (w/ sudo if it requires)
gem install tzinfo builder memcache-client rack rack-test rack-mount
erubis mail text-format thor bundler i18n
unfortunately after 12 gems installed i got an error regarding
builder-2.1.2
12 gems installed
Installing ri documentation for tzinfo-0.3.22...
Installing ri documentation for
2006 Jan 21
9
Where to put method
I''ve got following code in GenresHelper.rb
def album_list(genre)
albums = genre.albums.sort
list = albums.collect { |album| link = link_to album.title,
:controller =>
''albums'',
:action => ''show'',
2010 Nov 22
6
Should be obvious, but how do I even know what versions of ruby are available for rvm to use with rvm install?
I''m getting back to learning rails and at one point I used rvm to install
some rubies. Now I''m playing dumb and want to install the latest ruby
version - latest beta. How in the world do I found out the name of it? I''d
think it would be named somewhere here
http://www.ruby-lang.org/en/downloads/ and then I could just do rvm install
ruby-XYZ. I don''t get where I
2006 Dec 07
2
need to transfer data from old php like db to rails style db
hey all,
I have two tables like that from an old php project:
artists(id,name)
albums(id,artist_id,album_name)
and I need to transfer the data of this database to three tables that
look like this:
artists(id,name)
albums(id,name)
artists_albums(album_id,artist_id)
any idea what''s the fastest query to do this?
thanx in advance
Pat
--~--~---------~--~----~------------~-------~--~----~
2010 Aug 13
0
Rails 2 and Rails 3 in the same gemset leads to errors
Hi.
I am pretty new to ruby (and those gems) and rails.. Until now I
thought that all rails application have some kind of integrated
version management (RAILS_GEM_VERSION in Rails 2 and gem ''rails'' in
Rails 3). And therefore I thought that having Rails 2 and Rails 3 in
the same gem repository (in my case gemset under rvm) wouldn''t be a
problem. But during installing
2006 Jan 10
1
[AJAX] related drop-down list question
Hi all,
I followed the example on: http://www.roryhansen.ca/?p=9 for creating
related drop-down lists.
However, this code actually creates HTML in the controller component:
@albums = Album.find_all_by_artist_id(@params["artist_id"])
@html = "<select id=''album_id'' name=''album_id''>"
@html += "<option
2006 Jul 03
3
Open source gallery suggestion
Hello,
I''m a RoR newbie. I need to develop a gallery site for a friend of mine.
Can you suggest me an open source gallery I can start from?
I just need to manage photos, albums and an admin user in order to
modify albums.
Thanks
.Stefano
2010 Aug 08
1
help me
i am creating an aplication where table name albums width attributes
CREATE TABLE albums ( id int(11) NOT NULL auto_increment,
title varchar(255) NOT NULL default '''',
artist_old varchar(255) NOT NULL default '''',
release_date datetime NOT NULL default ''0000-00-00 00:00:00'',
genre varchar(50) NOT NULL default '''',
created_at
2006 Apr 25
6
Searching over multiple MySQL tables
I am racking my brain over this, probably because I only know very
simple mysql functions.
Basically I''ve got a few tables, ex:
Albums (id,name,band_id); Bands (id,name,label_id), and Label (id,name)
I want to search through both album.name, band.name, and label.name
throwing all results into a variable, with no redundant info.
I think what I need to be doing is setting up some
2008 Jun 25
5
Guildwars
I just made the swap from Microsoft completely but I cant get guild wars to work it gets stuck on the loading screen i can see the little gold mouse which you normally get on the logon screen or if i change some settings says i have a graphic error. I used envy to install my ati drivers. The card is a ati radeon 9550.
[Image: http://i150.photobucket.com/albums/s117/thomas01155/Screenshot.png
2011 Nov 10
4
Maktabah Syamilah on wine
Hi, I'm one of ubuntu indonesian muslim users. The truth is; all of kind software piracy is forbidden in our religion, some people who care this rule get an OS migration. But there are a problem, the best Islamic software "Maktabah Syamilah" doesn't run perfectly, take a look at the screenshots!
This is maktabah syamilah on windows:
[Image: http://i44.tinypic.com/iqyo48.png ]
2006 Jan 03
1
Passing parameters with link_to
I have following code in my controller:
class AlbumsController < ApplicationController
def list_by_year(year)
@album_pages
@albums = paginate :albums,
{ :per_page => 10,
:conditions => ["year = ?", year] }
render :action => ''list''
end
end
Now I want to make a link to the list_by_year action in
2008 Jul 15
8
SERIOUSLY OT STREAM EDITING IMAGES
Hi All,
I have been Googling my head off but cannot find a method to stream edit
all the images in a directory and to resize them. I have a large number
of images of up to 3GB in size that I want to put in albums on a
website, but before I do this I need to resize them to a more realistic
configuration.
I know how to do this manually with the GIMP but it becomes tedious for
more than a few
2013 May 08
1
Using koala get facebook albums photos
Hi Folks,
Good day,
I need to display my facebook album photos in my application.
I used *Koala *for facebook API.
I used this query for getting my album photos,
*current_user.facebook.get_connection("me","albums")*
by using this i can get only the albums details.
*"I need my photos which i upload in facebook "*
*
*
Please advise.
Thank you
--
You received
2010 Aug 12
10
Scaffolding working...kinda
Hello all. I''ve been working through some online tutorials, learning ROR
and have a question on scaffolding. Through the command promt i''ve ran
the command:
$ script/generate scaffold Albums
This created the controllers, helpers, models, and views.
I have a database table titled "albums" and have two records saved
within
The problem is that the scaffold command did
2006 Nov 12
6
Compiz bugs?
Hi,
I've been following the list for a few months but this just my first
post to the list. I've just started to use compiz again a few days ago
and I have a few things (probably bugs) here that bugged me a little
bit. I am not sure whether the bugs is in compiz or somewhere else so it
would be nice if someone could confirm them. Here they are:
- on default window decoration the maximize
2006 May 20
3
Alphabetically sorted list pages + dynamic forms
Hey everyone,
I''m new to RoR - how can I get my database content filtered by alphabet?
Eg, on my php site now I use this format:
http://www.scenepointblank.com/reviews/index.php?page=B
How can I get this kind of functionality out of ruby?
Also, how could I go about making a multiple select box of authors, then
depending on how many you chose, the next page of the form displays a