Displaying 20 results from an estimated 8000 matches similar to: "Storing fied contents in a session variable before link_to"
2006 Feb 17
2
HELP: Strange problem with breakpointer - stopped working
Hello,
I am in the middle of my first ROR project and suddently the
breakpointer script (./script/breakpointer) does allways return the
error listed below.
All time before it was working without problems - but the funny think, I
did not change anything on the system (despite downloading the Suse
Security Patches).
I am running:
Suse 9.3
Rails 1.00
Ruby 1.8.3
Please help, if you have any
2007 Dec 27
1
A function for random test based on longest run (UNCLASSI FIED)
Classification: UNCLASSIFIED
Caveats: NONE
Thanks for your quick response. The program you mentioned below available
from R is based on number of runs (up or down) not based on a longest length
of runs of same events. To be more specific, for example, from a series,
HHTHTTTTHHH, the number of runs are 5, and the longest length of runs of the
same events is 4. I'll check for the website you
2006 Jan 16
5
A function that return a link_to, Possible ?
Hello, I try this :
in application_helper.rb
-----------------------
def lnk bla
return link_to bla, { :controller => bli , :action => "blo" , :id
=> "blu" }
end
in file.rhtml
-----------
<%= lnk "yo!" %>
This return an error. There is a way to do this or something similar, or
this is completly impossible ?
Thanks
2006 Jan 19
8
Pagination_links without "?page=" but with params[:id]
Hello,
With default pagination I have this :
<a href="/users/infos/3?page=1">1</a>
<a href="/users/infos/3?page=3">3</a>
but i need this :
<a href="/users/infos/1">1</a>
<a href="/users/infos/3">3</a>
I need to remove the "?page=" parameters and rewrite a little the link ( with a link_to ? )
2006 Aug 15
2
Apache & FCGI: Premature end of script headers:
Hi,
I have quite a problem right now. After finish of development I
installed rails with fcgi and apache on my production env. Everything
seems to be configured ok, but once I while I get the famous error
message:
" Premature end of script headers: dispatch.fcgi"
I cant see any generel configuration problem, as sometimes everything is
running fine.
Maybe it is a problem related to
2006 Jan 26
3
Newbe:Where declare constants visible in view & controller ?
I am using some constants that should be visible in the controller and
in a view.
Declaring the constant in the controller does not make the constant
visible in the view.
So my question:
Where can I declare the constant to be visible in all views and
controllers ?
Thanks a lot in advance
Christian
--
Posted via http://www.ruby-forum.com/.
2006 Jun 07
2
Hash flattening on paginator link_to
Hey
I need some help with pagination and the link_to in the view.
I''m trying to include a hash in the pagination link_to params and it
keeps flattening out my hash.
Example:
Here''s my hash called @answer:
"answer"=>{"6"=>"9bf31c7ff062936a96d3c8bd1f8f2ff3",
"7"=>"6f4922f45568161a8cdf4ad2299f6d23"}
2008 Oct 17
1
link_to + image_tag
i want to integrated link_to with image_tag
before i did link_to with image_tag like this
<%=link_to image_tag(image.filename
2006 Jun 04
3
link_to tool tips
I think they are called tool tips...
I have view code that looks like this...
<%= link_to ''I'', :action => ''edit_innoculations'', :id => personnel %>
Is there an option (I don''t see it in api) to have tool tips for a
link_to ?
Craig
2006 May 24
1
link_to CSS problem
Hi all,
I''m a Ruby/Rails/web development newbie, so this may be a stupid
question. I''m putting some links using link_to into my rhtml page,
creating the layout using the DIV tag:
<div id="description">
<%= link_to h (item.description), :action => ''show'', :id => item.id
%>
</div>
...
div#description {
float: left;
2006 May 26
2
link_to and fragment identifiers
Fragment identifiers, it took me 30 minutes just to figure out what
they are called.
I would like to be able to create url that looks like this:
post/view/id#comments
How do I do that with a link_to function?
link_to "Comments", :controller => "post", :action => "view", :id =>
post.id ???
Thanks guys! :-)
John Kopanas
http://www.kopanas.com
2006 Jan 25
3
Link_to within :flash
Is there any way to use a link_to method within a controller through a
:flash notice? If a user enters an incorrect username/password, I want
to have a link to a forgotten password form readily available.
My newbie attempt at doing this resulted in the following error:
undefined method `link_to'' for #<UserController:0x386aef8>
I suppose I could easily have a normal link, was
2005 Jul 16
2
Applying css style to a link_to
What is the proper syntax to apply a css class to a link created using
link_to?
I''ve tried
<%= link_to("details", :class => "details", :action => "edit", :id => event)
%>
but that creates a link which looks like
/admin/events/edit/3?class=details
which is not what I''m looking for.
Kyle Heon
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 11
3
can''t call link_to from within a model class
can anyone tell me how to call link_to from within a model class? I''m
trying to do something like the following:
validates_uniqueness_of :email, :message => "address has already
been taken. If you''ve forgotten your password, please click " +
link_to(''here'', :action => ''forgot_password'', :controller =>
2006 May 08
4
link_to - Going Back without knowing the action name.
Hi,
I have a bunch of link_to''s in my code that are simple Back buttons that
should basically just go to the previous request. Is there a way of doing
this without specifying the action to execute? The problem is, sometimes I
may render the same view through separate actions so I wouldn''t know which
action to go back to.
Thanks.
-------------- next part --------------
An HTML
2006 Apr 02
2
Custom built link_to display text problem
Hi,
I want to display the number of comments for a post in a link_to. So
the link will look like below.
Comments(3)
How do i build this string in the link_to. I get an error about trying
to convert a fixnum to a string see code below.
<% case post.comments.size
when 0 %>
<p>No Comments</p>
<% else %>
<P><%= link_to
2006 Apr 06
2
Quick Question: Using a CSS class statement in a link_to tag
Hi,
I have a css file with lots of classes. I want different links on my
page (which all use the ''link_to'' tag) to belong to different classes so
that I can format their font, size, color, etc.
Where or how do I use the css class name in the link_to tag?
Thank you very much
--
Posted via http://www.ruby-forum.com/.
2006 Apr 17
3
Please help : how to link_to() and css styles ?
Hello, I''m having hard times on a very simple problem : how to provide a
css class to a link_to tag ?
I''m using this :
<%= link_to ''Cancel'', :action => ''list'', :class => ''btn-cancel'' %>
and RoR produces this :
<a href="/gallery/list?class=btn-cancel">Cancel</a>
I''ve read the doc
2006 Apr 24
2
link_to external link
I have searched through the api several times through and can''t seem to
find this.
<%= link_to ''Help'',
{:url => ''https://www.example.com/page?AppServeHelp''},
{:target => "_new"} %>
but this doesn''t work as it still prepends the current server/controller
space on the url itself.
How do I accomplish this?
Thanks
Craig