Displaying 20 results from an estimated 8000 matches similar to: "multiple items on 1 column"
2006 Jan 17
5
file_column mangling URL
Hey,
I''ve gotten file_column to upload a file, drop it in the dynamic
directory, but I can''t display the image, the directories repeat
themselves:
My model:
class Person < ActiveRecord::Base
file_column :image_url
In my view:
<%= image_tag url_for_file_column(''person'', ''image_url'') %>
HTML generated is this:
<img
2006 Jan 10
5
IP Address
There''s got to be a simple answer: how do you get the IP address of a
visitor in Ruby? Any help would be appreciated!
--
Posted via http://www.ruby-forum.com/.
2008 Apr 24
7
Please help. The error occurred while evaluating nil.name
Okay so heres my code which works fine, i''ll explain the problem
below.
<% for num in 1..-04Gazou6+pmm/bHYDwDEOA@public.gmane.org %>
<table class="products" id="table1" cellspacing="2" cellpadding="3"
border="3">
<tr>
<td>
<table width="25%">
<tr>
<tr>
<td><%=
2006 Jan 09
6
Nil column results, possible to ignore?
For a table "clients" there are city, state, and zip fields. However, for some clients we only have a state with no actual address.
The following code throws a "You have a nil object" error when outputting my client list. Is there a way around this, short of writing a specific case for each possibility?
<%= client.city + '', '' + client.state +
2006 Sep 30
1
possible bug: edge rails, nested resources and images
Im trying to show images in my restful application and have finally
found what appears to be the source of the problem.
When i have the products resource nested in categories as showen below
in the first routes file i can see the categories index (/categories).
When i add the images to the products resource map as shown in routes 2
i get the error:
image_url failed to generate from
2006 Mar 08
2
fade out and then fade in....how to make it work?
I''m trying to have one image fade out and then another slidedown upon
completion of the ajax call. I can''t get the timing correct. How do
you do it? Here''s what I''m trying (this does not work)
<%= link_to_remote(image_tag(url_for_file_column(product, "image_url"),
:update => ''right_content'',
:url => {
2006 Jan 16
2
ruby embedded code replacement for onclick in link?
Is there a ruby embedded code replacement for something like this?
<a href="#" onclick="window.open(''http://192.168.78.12:3000/portfolio/show/<%=
item.id %>'', ''test'', ''width=660, height=500,resizable=no'')">
<%= image_tag item.image_url, :size => ''200x150'' %></a>
Thanks,
Dan
2006 Jan 17
2
file_column plugin and instance variables
To make file_column work I have to copy my local variable back to an
instance variables like this:
<% for product in @products
@product = product %>
<div class="catalogentry">
<%= image_tag url_for_file_column(''product'', ''image_url'') %></p>
This is needed because file_column specifically looks for the instance
2006 Jan 06
3
image replacement (new Effect.*****) problem
Here''s what I''m trying to do. I have two divs, one holds about 20 small
images of products and the other holds a single large image of one of
the products. I''m trying to use the jazzy "new Effect." way of changing
images but I can''t seem to get it too work. My script is replacing the
image and then making the element disappear. What
2006 Jan 09
2
catch id from form and copy between objects
Hi all,
Not completely sure what I''m doing, but I need to get data from another table
based on and id. Below is some breakpointer output:
irb> @params
=> {"project"=>{"project_description"=>"point2", "project_name"=>"break2"},
"action"=>"create_project",
2006 Jan 05
2
Ruby On Rails Workshop in Zurich, Switzerland
I''m happy to announce a two day RubyOnRails Workshop in Switzerland,
27.-28. February 2006.
Details can be found here: http://www.invisible.ch/static/47/
rubyonrailsschulung (german)
cheers
Jens-Christian
--
InVisible GmbH, Langgr?tstrasse 172, 8047 Z?rich
Phone: +41 44 401 09 30
http://www.invisible.ch http://not.invisible.ch
-------------- next part --------------
A non-text
2006 Jan 10
13
# of entrys in different months
right now im writing a weblog as my first project in rails. Most tings
seems to be working great :), but there is (a least) one thing left i
can''t figure out how to do.
As most weblogs i would like to have an archive, whick looks like this:
January 2006 (42)
December 2005 (60)
November 2005 (2)
October 2005 (101)
September 2005 (4)
August 2005 (2)
July 2005 (101010)
where (x) is the
2006 Feb 16
1
Newby: Getting "unitialized constant SockServ" -- help
I can''t seem to find my error. I think it''s fairly basic. Do I have to
initialize SockServ somewhere or is this error message really indicating
something else?
uninitialized constant SockServ
C:/rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in
`const_missing''
#{RAILS_ROOT}/app/controllers/mindreadr_controller.rb:15:in
2006 Jan 08
1
Using many-to-many relations in tests
Hello,
I have some many-to-many relations, I would like to use in my tests. But
I''m not sure what I should put in the fixtures for it?
How do I add those relations in the testing environment?
Greetings,
Gitte Wange
2006 Jan 09
1
Modifying script generated scaffold output Books/Authors
People,
For my little book library db I find the rails script generated stuff
fine for most of my needs but there is one thing I couldn''t figure
out . .
Part of the auto output of app/view/books/edit.rhtml is:
<%= start_form_tag :action => ''update'', :id => @book %>
<%= render :partial => ''form'' %>
<%= submit_tag
2006 Jan 12
2
Rails 1.0 gem installation - rake version not supported on
gem install rails-1.0.0
the above commands gives an error saying it requires rake 0.6? what
should be done here ?
- Thanks - Nirav
--
Posted via http://www.ruby-forum.com/.
2006 Jan 16
1
Run method at the same class
Sory for dummy question and bad english )
i''ve got a controller class
class ArtController < ApplicationController
layout "main"
scaffold :art
def rec
a = a + ''hellomoto''
end
def srec
for i in 0...5
# run rec here (<- i dont know how do it )
end
end
end
at the srec method i what run rec method at while. how i can do it?)
whats
2011 Dec 26
1
Learning Ruby on Rails 3.1 - deployment - Error (cs.jpg isn't precompiled)
Hi guys,
I''ve followed the Agile Web Development with Rails book and I''m up to
deployment. I started a Ubuntu 10.1 LTS server on Amazon EC2 for
testing, got Apache 2, mysql, rvm, ruby 1.9.2, rails 3.1 and phusion
passenger up and running as per the book.
When I come to running the actual site, it says "We''re sorry, but
something went wrong."
In
2006 Jan 02
3
rake test_units not loading any fixtures
Hello All,
If I run my unit tests individually using Ruby, they all work correctly.
However, if I try to run them using "rake test_units", I get a bunch of
error messages.
The error messages appear to be caused by rake not loading any of the
fixtures into the test database.
I am using PostgreSQL on Windows.
Does anyone have any suggestions?
Many thanks,
Bruce.
--
Posted via
2006 Apr 27
3
LoginEngine File_column interop
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Hello all,
I hope someone can help me with this issue, I have the SVN
file_column and using LoginEngine/UserEngine with Rails 1.1.2. My
issue is that I''m overloading the view for LoginEngine to support a
file image upload as part of the user record and having a heck of a
time doing so.
Near the bottom of my new _edit.rhtml