Displaying 20 results from an estimated 8000 matches similar to: "How to call controller from a div"
2006 Sep 04
2
how to? link_to with a rel="tag"
i want my html output to look like this:
<a href="/path/to/page/" rel="tag">link text</a>
how do i tell the link_to method that i need: rel="tag"?
thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send
2006 May 19
2
Checking div generation technique
Hi guys,
just wanted to ask, on the onset of our page, we generate several div''s.
What we noticed on an intermittent connection is that several divs don''t
get to generate all the div''s sometimes so we had to reload our page.
Would you have any technique on how we can do this?
thanks
bing
--
Posted via http://www.ruby-forum.com/.
2006 May 11
3
How do i open link to a new winow?
Pretty simple question right? can''t seem to figure it out.
--
Posted via http://www.ruby-forum.com/.
2006 Jun 28
9
Scaffold Issue with Postgres
Hi guys,
I''ve been able to successfully install the postgres adapter for a remote
database machine to get rails up. My machine is running on Fedora 2.
Rails version 1.1.2. Is my yml config correct? I am getting this error
when I execute script/generate scaffold service_contents content :
exists app/controllers/
exists app/helpers/
create app/views/spiel
exists
2006 May 17
9
Render No Layout?
Hi guys,
Am having a problem.
I have this def in my index controller that works like this:
def do_something
$a = variable1
$b = variable2
$c = variable3
$d = ""<script language=\"Javascript\"> \n new Insertion.Bottom(''#{$c}'',
''#{$a} - #{$b}''); \n </script>"
$trigger = "1"
render(:partial =>
2006 Jun 15
1
Periodically Call Remote Condition
Hi guys,
I''ve been reading through the forums and came across a response for
adding :with condition to a periodically call remote.
I tried it out and couldn''t make it work. Would anyone have a sample of
how to use this conditional structure with periodically call remote?
If not, does anyone have any idea how to add a condition to a
periodically call remote?
What I need is to
2006 May 31
2
Checkbox Help
Hi guys,
I am need to help again. Sorry for the newbie query but would definitely
appreciate the help.
Here''s the q: I generate a list of items from the database and render
them out with a checkbox beside them. A user may click more than one
item and I would want to save all checked items into another table. I
have been able to give each checkbox a unique id . Would anyone be able
2006 Apr 28
2
Trying to turn params field into a variable
Hi guys,
I have another question, we have this line on our .rb code:
@variable = params [:user][:bird]
I need to be able to change the 2nd field into a variable because it is
a changing valuename, I was wondering if you had any trick for that.
Meaning I need to make [:bird] into [:dog] or [:cat]...
It''s proven really tricky for me to get it to change I wonder if you
guys had any
2008 Jun 15
11
[PATCH] helper to create fb css stylized table
I attached a rails helper implementation of the fb_table described here:
http://wiki.developers.facebook.com/index.php/Facebook_Styles
I included testing and comments. I hope you find it useful.
Curiously, it''s really a small extension of FBML.
Richard
-------------- next part --------------
Index: test/rails_integration_test.rb
2006 Jun 08
1
Using hidden fields to pass values
Hi guys,
Another question from a newbie.
I need to update a div on my page which gets updated regularly. So what
I''ve done is to create a hidden field which technically just contains
the user_id. This field doesn''t change. I was planning of pulling that
text field user_id data and putting it into params but it keeps on
giving me a nil value.
Is there a technique I could
2006 May 30
11
Another String Manipulation Exercise
Hi guys,
And I thought it wasn''t a problem. Here''s my string
"/var/www/vhosts/mysite.com/httpdocs/public/file/mypic.jpg"
How do i take out all the text that comes before "mypic.jpg"?
Trickier than I first thought.
TIA,
Bing
--
Posted via http://www.ruby-forum.com/.
2006 Jan 20
4
[newbie]how to use link_to to link to another controller?
I am just diving into Rails and I am a bit puzzled by the link_to function.
am writing an app to display my photographs in categories. My application layout
has a sidebar to show a menu with categories from the categories table in the
database (like in taken from the tutorials), to be shown on every page.
I managed to get a global @menu_categories object that keeps track of all the
categories
2006 Jan 03
7
link_to an external url ?
Simple question. Is it possible to generate a link like
<a href="http://www.google.com" target="_blank" >google</a>
with the link_to function ?
Thanks
2009 Jun 11
4
Using view helpers and route helpers in a model
Hi there,
I am trying to get something working and its driving me crazy. I have
been looking around for solutions to getting view helpers working in
models and for the most part I find this solution.
Add the following in the model you want to use them in
include ActionView::Helpers::UrlHelper
include ActionController::UrlWriter
However, when I try something like
2007 Nov 14
3
absolute urls in url_for vs. link_to
In both url_for and link_to, the :only_path param can be used to
determine whether the link url used is complete with hostname and path,
or just has the path (a kind of relative url).
However, in url_for it defaults to false (urls with hostnames), and in
link_to it defaults to true ( urls without hostnames, just paths).
Is there any reason for this discrepency? To me, it violates the
principle
2006 Jan 23
4
an image that is a clickable link?
Hi,
How do I make an image that is a clickable link the rails way? Is
there a view helper for this?
Thanks,
Peter
2005 Dec 15
6
passing parameters to link_to OR better way to do this?
Hi All:
I''m writing my 1st Rails app and I can''t seem to find the answer on
the web or in the book.
I''m making a table, and I want to be able to expand a filename. The
code is basically as as follows below. In the last <td> entry, I want
to call an action and pass in the test_results_path, which I will go
and read a file and munge the data for a separate
2006 Jul 03
13
Remote Postgres is driving me crazy!
Hi guys,
I need your help. Here is my database.yml:
development:
adapter: postgresql
database: db
username: username
password: mypassword
# Connect on a TCP socket. Omitted by default since the client uses a
# domain socket that doesn''t need configuration. Windows does not
have
# domain sockets, so uncomment these lines.
host: 192.168.22.1 (this is a remote ip in
2006 Feb 12
5
Passing Multiple Values In URL
Been a while since I programmed in Ruby and Rails and some of the
basic concepts I just loose so quickly. This one I can''t find any
examples of.
I want to pass two pieces of information in my URL. The :id plus I
want to pass my user_id. How do I pass it using the link_to?
Stupid question I know... but I can''t find the answer.
John Kopanas
http://www.kopanas.com
2006 Jan 12
6
link_to_image - Remove Border
Hi All,
I am new to both Ruby and Rails, so please be patient with me. I am
currently working on a view for a controller and I have used the
following excerpt:
<td><%= link_to_image "b_edit", :action => ''edit'', :id => part_prefix
%></td>
The image is being displayed and the link is working. However, the
formatting of image rendered