Displaying 9 results from an estimated 9 matches for "vg5ptm5gbelok6nblmlh1q".
2008 Jan 02
5
polymorphic assosciations - still the way in Rails 2.0.x
I store a lot of information concerning blogs, events, books, bla
bla...
So I have a lot of database tables including the same fields: url,
user_id, subject, comment.....
So I decided to use polymorphic assosciations.
Is this still the prefered way in 2.0.x or does Rails 2.0.x offers me
a easier, faster and more preferable way to do this?
By the way, isn''t it much easier to do all the
2007 Jun 06
1
"selected" in form.select
I have a search form in my navbar where a user can select in which
area he wants to search. After clicking the submit-button the
results get rendered but the previous selected area is no longer
selected.
<%= form.select (:suchfeld,
[ [''Beschreibungen'',''description''],
[''Headlines'',''headline'']] )
%>
I was able to
2007 Jun 20
3
hover and displaying divs
Please take a look at:
http://www.lovelybooks.de/library/index.html?resetTabs=1&resetList=1
Can someone give me a hint how to display the divs (?) when moving
the mousepointer over the images?
Thanx
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this
2007 Jul 21
3
manging rescues
What''s the recommended way to catch errors like this:
NoMethodError in Register#confirm
Showing app/views/register/confirm.rhtml where line #4 raised:
undefined method `namen'' for nil:NilClass
I get this error when someone does somethinh like:
http://.........../register/confirm?email=jkdsfadslkjflksd
If I make:
remail = params[:email]
@user = Request.find(:first,
2007 May 28
2
out-cheat validates_uniqueness_of
before_save :strip_strings
validates_uniqueness_of :username
validates_presence_of :username
private
def strip_strings
self.username = username.gsub!(" ","")
end
example:
username = " gissmoh-/upiLifMog2ELgA04lAiVw@public.gmane.org "
becomes gissmoh-/upiLifMog2ELgA04lAiVw@public.gmane.org
and is stored in the
2007 Jun 06
1
highlight and pagination
I made a search-field which shows all hits and highlights the all
words searched for:
def suche
if params[:link][:suchfeld] == "description"
@description = "show"
@highlight = params[:suche]
end
@link_pages, @links =
paginate :link, :order_by => ''url'',
:conditions =>
2007 Oct 22
0
ActionController::HttpAuthentication and MySQL
Has anyone a example how to authenticate against
users stored in a MySQL-Database?
--
Jochen Kaechelin
railswerk.de, gissmoh.de, figgfrosch.de, ror-ror.de
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2007 Nov 23
0
fileupload via ftp and attachment_fu
How can I use attachment_fu to store files in a MySQL database
(db_file) which I uploaded
via ftp in a special directory?
I need to upload files - large images 25-40 MB -, so my intention ist
to upload them
via ftp and then use attachment_fu to strore them in a MySQL database.
I had problems in uploading such files via a form - timeouts.
I need them in a database because we have a very
2007 Dec 18
0
Updating metadata for 11 gems ....
I justed typed "gem outdated" and got the following output in my
terminal:
Updating metadata for 11 gems from http://gems.rubyforge.org
...........
complete
My first thought was that there are some gems neeeded to be updated -
so I
typed it again and got the following:
bullet:~ root# gem outdated
bullet:~ root#
So there are no updates available.
What exactly does "Updating