Displaying 20 results from an estimated 50 matches for "bigbold".
Did you mean:
bigbird
2006 Jan 29
8
Determining width and height of image files
I''m trying to figure out how to determine the width and height of images
that are uploaded through my app. Either from the posted data or the
file I save to disk. I''ve been searching around for info but no luck;
I''m completely at a loss. Any suggestions or pointers would be great.
Project background:
The site is an artists portfolio site. The images are thumbnails
2006 Aug 05
2
Multi-step forms
I need to create a number of multi-step forms for creating models.
Currently i''m looking at http://www.bigbold.com/snippets/posts/show/277
As a solution. Are there any other methods you guys would recommend? Are
there any reusable (dry) methods of creating multiple multi-step forms?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rai...
2005 Dec 23
10
truncating html text
I''ve got a fairly basic problem here that I''m hoping there is an easy
solution for.
I have a chunk of html code that I want to truncate to a given length...
say 20 characters or so.
If I use the ''truncate'' helper function I end up with unbalanced tags.
For example.
<a href=www.someplace.com>A really long string of words</a>
becomes
<a
2006 Mar 31
5
Titles in URL ?
Hi!
I have an article website and would like to have the title of the
article in the URL. and not domain.com/show/id
ie: http://domain.ck/articles/how-to-become-a-ror-master/
How to change a title with special caracters like: '', :, ?, !. to
something that works in the URL.
Thank you!
--
Posted via http://www.ruby-forum.com/.
2006 Feb 17
8
Atom
Any plans for using Atom with rails. I saw the "Typo" project is
using MoveableType, Blogger, ... but not Atom.
It seems Atom is not part of ActionWebService.
Has anyone done any work with Atom and Rails ?
Thanks for your answers,
Gaspard
2006 May 05
2
how to get image properties
Hi friends
in PHP there is a direct function GetImageSize(), with it I can easily
determine the dimentions of an image file.
How can I do in RoR.
Please help me out
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060505/13ba1640/attachment.html
2006 Jan 06
2
Paginate from a difficult sql query
Hello,
I have 2 tables
table colors :
+----------------------+
| id | user_id | name |
+----------------------+
| 1 | 1 | test1 |
| 2 | 2 | test2 |
| 3 | 3 | test3 |
+----------------------+
table users :
+----------------------+
| id | enabled | name |
+----------------------+
| 1 | 1 | bob |
| 2 | 1
2006 Jan 30
3
Which library for reading RSS ?
Hi all,
I''m looking for a library for reading RSS feeds. Do you know a good one
?
Thanks for your help.
--
Posted via http://www.ruby-forum.com/.
2005 Dec 31
2
numeric_spell plugin
I''ve created a plugin that lets you spell out numbers (under one
thousand, in English, for now).
Examples:
>> 23.spell
=> "twenty-three"
>> 23.spell :noun => ''person''
=> "twenty-three people"
>> (23.14).spell_currency
=> "twenty-three dollars and fourteen cents"
>>
2006 Feb 27
2
list of countries, states, cp, etc.
I''m doing a registration form.
I saw many registrations forms which asks you for a country and it lists
all the countries of the world, and when you select a country the form
is actualized with all the states or provinces, and when you select a
state/province then the form is actualized with all the cities.
I''m looking to do something like that, is there a free service or pay
2006 Feb 02
3
breakpointer failing
Hey there,
I got a new workstation going on here an Intel iMac, and I''ve compiled
and installed everything with intel binaries. Everything works fine, I
even got that cool clever lighttpd script running
(http://www.bigbold.com/snippets/posts/show/303).
But the one thing that doesn''t work is breakpoints and the breakpointer script.
When I run script/breakpointer, I get the following error:
/usr/local/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo'': getnameinfo:
Non-recoverable failure in name resoluti...
2006 Jul 04
2
searching
I''ve been searching for a way to implement a search feature across
articles posted in a table. All the google results I get refer to "live"
search and I''m not interested an automcomplete function, but because of
the prevalence of tutorials on the subject, I can''t seem to find what I
want.
I have implemented a search in PHP before where I had MySQL perform an
2006 Jul 16
2
Can scaffold do tall tables instead of wide?
I''m trying to get data in rows instead of columns by default.
The default scaffold behavior is to create an initial table layout with
column headers along the top. In some cases this creates really wide
tables which require horizontal scrolling. Is there a parameter I can
use with scaffolding or a hack to get the header cells along the left
side of the table instead?
I''m
2006 Feb 05
4
Another layout question - Layouts on a per method basis - Layouts with AJAX
...yout was used? How can I make it use a custom layout on a per method basis?
Q3. I am displaying paginated results for the list action of tags controller. This page already has a layout defined. Everything works fine. Now, I am interested in implementing the ajax_pagination_links (http://www.bigbold.com/snippets/posts/show/386). However since the layout has already been defined, every time I click on the page number, the entire page including the header is loaded again within my div. I cannot find how I can turn off the layout conditionally or alltogether only for subsequent calls.
Since...
2006 Jan 06
4
"Selecting" a calculated row / Using :select in the paginate method
Hi,
I was trying to use the :select parameter to select a calculated row,
but it appears that the parameter is not picked up by the paginate method.
I want to add the following to the select statement:
timediff(now(), created_on) as age
So I tried:
@story_pages, @stories = paginate :stories, {:per_page => 10, :include
=> ''user'', :select =>
2006 Mar 06
6
Executing SQL in rails, and the types of the data returned
Hi,
Every once in while I have to run SQL by hand, in my models mostly. But
I''m wondering if there is a better way of doing it than I do. And, I
have a question concerning types of the fields in the result the query
produces.
First, about the types. In a certain model, to get and return the value
of a boolean function, I have to do:
result =
2006 Jun 07
5
File is nil
...<%= submit_tag "Simple Save" %>
<%= end_form_tag %>
This is the code in the controller:
def create
...
@logfile.file= @params[''logfile_fileName'']
...
end
And the Model is nearly identical to the code in here:
http://www.bigbold.com/snippets/posts/show/1805
Is it because I don''t have a file field in my database? The database
keeps the name of the file and some information related to it. I want
to save the file locally only, not to the database.
Please help! I''ve been stuck for DAYS.
Thank you in a...
2006 Feb 10
7
convert rails object to javascript variables
Am i a total idiot to try and parse out a rails object for javascript
in this way?
<%
for i in interface_items[0].attributes
%>
var <%= i[0] %> = "<%=h( i[1] )%>"
<%
end
%>
Am I missing something really obvious?
Thanks,
Mark
--
--------------------------------------------------------------------
I am Mark Daggett and I approve this message.
2006 Jan 31
6
Pagination - why is it this hard?
...<%= link_to "Next", { :page => @person_pages.current.next } if
@person_pages.current.next -%>
Resources I''ve used to (it seems) no avail:
http://api.rubyonrails.com/classes/ActionController/Pagination.html
http://wiki.rubyonrails.com/rails/pages/HowtoPagination
http://bigbold.com/snippets/posts/show/389
http://railsexpress.de/blog/articles/2005/11/04/faster-pagination
2007 Feb 06
8
setting enviroment variable
I have a ror project which has been productized. There are several web
sites in one ror project
I need to set an "enviroment variable" to run different sites, can I do
that using mongrel? I tried to use mongrel''s -S option and set the
enviroment variable in that file but it seems mongrel runs that file
after it calls enviroment.rb
I also used apache''s