Displaying 20 results from an estimated 10000 matches similar to: "How to use Coookies"
2006 Jan 22
0
link_to query string
Here''s a simple one I think.
Using link_to, how do you get multiple fields in the query string?
link_to("anchor text", {:action=>"neat_page", :field_1=>"value 1",
:field_2=>"value 2"})
-this only gets you field_1 in the query string
as does this -
link_to("anchor text", :action=>"neat_page",
2008 Jan 03
3
how to use "link_to" to deliver a parameter?
Hello, there:
I wish A link to invoke such a action together with the parameter
"zh_CN" "cookies/switch_language/zh_CH" to switch language
sellection, and I use the following code:
<%= link_to ''Chinese'', :controller => ''cookies'', :action =>
''switch_lang'' %>
But, how is "link_to" able to convey
2006 Jun 10
2
How can I link/anchor down the page with #anchor in urls?
I''m trying to expand on a blog tutorial and one thing I can''t figure out
is how to use anchors within pages.
For example say I have sections on a page with anchors like <a
name=section1"</a> through <a name=section6"</a>. Using older non-rails
methods I would construct urls that contains the pound symbol and anchor
name in the url such as
2010 Sep 03
1
Action Controller Error: undefined local variable or method `current_user'
Newbie learning Rails. I''m currently on Chp9 here:
http://railstutorial.org/chapters/sign-in-sign-out#top
At the end of the tutorial, rails is erroring (see below). being new
to Rails and after having checked the tutorial... How do you resolve
this kind of error. It''s saying current_user is not defined, and it is
supposed to be defined with/Sites/sample_app/app/helpers/
2006 Sep 15
2
Link_to with anchor?
Hi!
Very silly question, but how do you use link_to with an anchor, for
example:
www.website.com/articles/123#comments ?
Just can''t figure out!
Thank you!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2006 Jan 12
1
adding a destination anchor in the link
hi, I would like to specify a destination anchor in the generated link with
the link_to helper, so the navigator opens the document at the given point.
it should look something like this:
/blog/archive/2006/01/10/test-post.html#comments
I tried it with the following code:
<% link_to("comments",
:controller => "blog",
:action => "archive",
:year
2011 Mar 02
0
polymorphic_path not getting generated
Folks,
I am trying to use the Savage Beast plugin in a polymorphic way. I
have setup my model as below
# Leaving out other details from models
class Forum < ActiveRecord::Base
has_one :recent_topic, :class_name => ''Topic'', :order => ''sticky
desc, replied_at desc''
belongs_to :forum_owner, :polymorphic => true # Helps keep track
of which
2006 Apr 04
2
How to apply class from Stylesheet to "link_to" element???
Hi,
This is the "img" class for anchor element inside my stylesheet.
=====================
A.img:link {
color: #ffffff;
text-decoration: none;
}
A.img:visited {
color: #ffffff;
text-decoration: none;
}
======================
I can easily apply this tag inside my html document as follows:-
=======
< a href="goodbye.html" class="img">
=======
Now I want to
2006 Nov 28
1
link_to and url_for in ActionMailer
I am new to ActionMailer and having a problem.
I want to be able to send a notification e-mail when a new item is added
to a list. Sending an e-mail to the right people on creation is working
fine.
However, I want to include in the e-mail a link to the application so
that users can click on the link in the e-mail and immediately be taken
to the show view for the new item. When I add a link_to
2007 Nov 11
0
ActionMailer Difficulties
I''m using ActionMailer in test mode (so, in the config file I have
config.action_mailer.delivery_method = :test
) I have my mailer set up as such...
def confirm(message, sending_user, user)
@subject = "You have a message from #{sending_user.login}"
@body["message"] = message
@body["user"] = user
@body["sender"] = sending_user
2005 Mar 28
0
Handling return from modal pages on rails
Hi List,
I didn''t like the way store_location worked in rails. It doesn''t know
you''ve pushed the "back" button, and it always returns to the top of a
page. On a large page, the part you were looking at would no longer be
on the screen.
People try to deal with this using an AJAX hack, but it seems to me that
the proper way to fix it is to store the return
2008 Jul 08
4
Conditional "link_to" helper function - AYUDAME POR FAVOR
Hello,
I need to write a function that will return a link only if the current
user is the owner. Here is my code...
1. application_helper.rb
2.
3. def link_to_if_owned(owner_id, anchor_text, where_to_go)
4. if current_user.id == owner_id # current user is owner
5. "#{link_to anchor_text, where_to_go}"
6. else
7. anchor
8. end
9. end
And
2014 Apr 26
0
jquery_ujs.js 404
I am getting this annoying error which relates to jquery_ujs.js not
being served. Any clues?
This is the site link:
http://test.kopy.com.br/home/index
GET http://test.kopy.com.br/assets/jquery_ujs.js?body=1 404 (Not Found)
index:11
GET http://ads.panoramtech.net/loader.js?client=tac
net::ERR_BLOCKED_BY_CLIENT rev.js:4
Error in event handler for (unknown): Cannot read property 'state' of
2007 Apr 18
4
FWD: RE: Bad network performance between VMs in a doma in.
Dual Core AMD Opteron(tm) Processor 280, 2 units. All configs are native.
исходное сообщение
Тема: RE: [Xen-users] Bad network performance between VMs in a domain.
От: zvoice@snto.ru
Дата: 18.04.2007 11.15
In my next message i ll give you to your questions, but i think the problem is when the packet comes from vif to bridge and then from bridge to another vif. But what is strange, that packets
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 Feb 10
1
RE: sorting <a href..> with D&D follows the link(browser thinks I click)
Maybe don''t make anchor tags draggable? Or you could do something like
change the href to point to ''#'' and move the actual href into your
javascript, and only call it if they click without dragging. Still, I
think making a clickable item draggable is begging for problems.
> -----Original Message-----
> From:
2011 Apr 04
0
Fwd: Fwd: bug on create domain0
-------- Исходное сообщение --------
Тема:
Fwd: bug on create domain0
Дата:
Mon, 04 Apr 2011 14:54:13 +0600
От:
net administrator
Отвечать:
tkpiuk@gmail.com
Кому:
xen-devel@lists.xensource.com
-------- Исходное сообщение --------
Тема:
bug on create domain0
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
2011 Nov 18
0
Jquery dialog
Hi,
i had a index page with url as www.exa,com/users/jude.In that page i
want to submit a from which appears from popup dialog.The action of the
popup is going to send_message,Whenever i submits, via ajax the data
gets stored but not the page gets reflected.
My controller
def send_message
@message = current_user.messages.build(params[:message])
@message.receiver_id = @user.id
2008 Mar 28
8
Cannot run winecfg (output pasted)
Code:
~ # winecfg
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM default:0
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM default:0
wine: Unhandled page fault on read access to 0x00000048 at address 0x7e2f476c (thread 0026), starting debugger...
Unhandled