Displaying 20 results from an estimated 32 matches for "lisbakk".
Did you mean:
lisbakke
2006 Jul 26
4
can you pass data when you render :action
how can i do:
render :action => "headline", :id => @user.id
Thanks,
Ben Lisbakken
--
Posted via http://www.ruby-forum.com/.
2006 Jul 19
4
Using Application.rhtml as layout for all controllers
...t;
<head>
title
css include
javascript include
</head>
<body>
nav system
<%=yield%>
</body>
</html>
so that means any controllers go into the body immediatly - so can they
not have their own css files without specifying them in application
layout?
Thanks,
Ben Lisbakken
--
Posted via http://www.ruby-forum.com/.
2006 Jul 18
3
Navigation techniques, everyone?
...blems? will i be forced to use render
components? i''ve heard they''re evil)
2. Make it''s whole layout be a helper method in application_helper.rb,
and the views can call it when they need it.
3. Put it in my application.rhtml layout.
What do you guys think?
-Ben Lisbakken
--
Posted via http://www.ruby-forum.com/.
2006 Aug 10
4
How to upload all images in a folder?
...d of making a form to upload one picture at a time, I''d like to
have the File Column plugin accept a directory, and have each picture be
uploaded and thumbnails created (w/ RMagick).
Has anyone done this?
Anyone have a good idea where to start if I were to do it on my own?
Thanks,
Ben Lisbakken
--
Posted via http://www.ruby-forum.com/.
2006 Jul 27
3
How do I update a div''s content in the controller?
Without using an RJS, is there a call I can do in the controller? All I
want to do is this statement, but in the controller:
new Effect.toggle(''notifier_nav'',''appear'', {duration:12.0});
Thanks,
Ben Lisbakken
--
Posted via http://www.ruby-forum.com/.
2006 Jul 20
7
How do you use :message with validation?
If I do validates_uniqueness_of :name, :message => "It''s not
uniqueeee!!!"
then how do I have it display that message when the check fails?
-Ben Lisbakken
--
Posted via http://www.ruby-forum.com/.
2006 Jun 21
1
Remote function call & not render anything?
Is it possible for me to do a periodically_call_remote on an action, but
have that action render nothing?
The problem is I want it to sometimes update a div, and sometimes do
nothing to the div. How can this be done?
Thanks,
Ben
--
Posted via http://www.ruby-forum.com/.
2006 Jun 21
2
Mouseover Speed Issues
I''m having severe speed issues on our server (localhost is lightening
fast!).
Here''s the call:
<img src= <%= @pics[col].img_url %> height=80 width=60 onMouseover="<%=
remote_function(:update => "diag_box", :url => { :action => :preview,
:tit => @pics[col].mname, :desc => @pics[col].description })%>;">
It''s an
2006 May 17
1
Display Images from URL in Database
I am only 3 days into rails, so please excuse the stupid question.
I am trying to access my database named Movies. I am using a table
named movie. I would like to pull the table entry with field
vname=rawr, and then take this entry''s field vpic, and use that vpic
(assume its a url to an image) to display an image.
To begin with, I am having problems with displaying an image with
2006 Jun 26
2
How can I minimize SQL queries
I have users, who have friends that are also users in mysql database.
I have a foreign key for both users, so that I can reference their data
directly. My problem is displaying friends. My for statement would
look something like this:
for i in(0..@user.friends.length)
puts @user.friends[i].user.name
end
so @user is the user that i''m displaying friends for... .friends are the
2006 Jun 21
3
Call action & display nothing?
...a periodically_call_remote to an action but then not display
any new view? say the new action was called ADD. I don''t want to do an
rhtml file for add, and I don''t want to render anything in the
controller... I want to leave the page as it is. How is this done?
Thanks,
Ben Lisbakken
--
Posted via http://www.ruby-forum.com/.
2006 Jul 25
11
Prevent users from entering urls
How could I make it so that links on my page could link to a controllers
action, but if the user manually entered the url, it would redirect them
back to the main page? Is this possible?
Thank you,
-Ben Lisbakken
--
Posted via http://www.ruby-forum.com/.
2006 Jul 26
3
adding class or id tags to tags like linkto and form
I''m trying to figure out things like this by myself so I don''t bother my
developer and slow him down. How do I add class or id css attributes to
tags like this:
<%= form_remote_tag :url => { :action => "send_url" } %>
<%= link_to_remote "My Profile URL", :url => { :action =>
"send_profile_url", :id => @user.id } %>
2006 Jul 19
2
Mouse Location
...:
MOUSEY;});new Effect.toggle(''title_login'',''appear'');return
false;">Login</a
The other thing I''m wondering, is how would I reference the javascript
variables MOUSEX and MOUSEY in that line of code?
Or is there a better way to do this?
-Ben Lisbakken
p.s. how do i post that full h ref without all the weird modifications?
this forum keeps yelling at me because:
Your post seems to contain Spam: "".
--
Posted via http://www.ruby-forum.com/.
2006 Jul 16
3
RJS problem
I have an odd problem while trying to use a simple rjs.
_test.rjs : page.alert "test"
test.rhtml: <script><%=render_partial(''test'')%></script>
When I am attempting to view controller/test the page comes as if it was a
text file.
So i am actually seeing:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2006 May 18
1
RE: Rails-spinoffs Digest, Vol 12, Issue 29
...rson managing the list at
rails-spinoffs-owner-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Rails-spinoffs digest..."
Today''s Topics:
1. Display Images from URL in Database (Ben Lisbakken)
2. How to send data using prototype (Fernando)
3. RE: How to send data using prototype (Martinez, Andrew)
4. Autocomplete GetToken?? (Daniel Elmore)
5. Re: Autocomplete GetToken?? (Andrew Tetlaw)
6. RE: Autocomplete GetToken?? (Daniel Elmore)
7. Re: Display Images from URL in D...
2006 Aug 11
5
Why does no one like render_component?
...ion in the picture controller.
render_component would do this perfectly. But we''re told not to use
render_component. So instead, I''ll have to put picture list as a
partial... that means I''ll have to do the sql find for the @pictures in
the Album controller...?
-Ben Lisbakken
--
Posted via http://www.ruby-forum.com/.
2006 Aug 24
3
handling file uploads
hey guys,
the way i''m handling file uploads is no good, but i''m not sure what
the best way to go about it is. right now my approach is to use
FileUtils.mv to move the uploaded file to the directory i want it in.
this approach doesn''t work well because sometimes the uploaded file is
just an IO object instead of a temporary file (apparently small files
aren''t
2006 Aug 10
6
Getting started w/ Ruby on Rails
Hi,
I would like to get started with RoR, since it seems to be a terriffic
platform for Webdevelopment. However, I''m unsure what "level" you need
to be on in terms of programming to get started?
Best regards,
Gustav
--
Posted via http://www.ruby-forum.com/.
2006 Jun 26
9
Form Mail
What is the most RoR friendly way of making a form mailer similar to
this php one?
http://tips-scripts.com/?tip=form_mail#tip
Or is it easier just to use the php with RoR?
--
Posted via http://www.ruby-forum.com/.