Displaying 20 results from an estimated 100 matches similar to: "link_to + image_tag"
2009 Dec 28
3
Updating Scriptaculous and Prototype with current project
Hi
I''ve been trying to use the latest version of Lightview. It says that
it needs:
Lightview requires Prototype 1.6.1 and Scriptaculous 1.8.2.
I have included the following in my project files:
<script type=''text/javascript'' src=''http://ajax.googleapis.com/ajax/
libs/prototype/1.6.1/prototype.js''></script>
<script
2008 Jul 29
0
Re: InvalidAuthenticityToken with Lightview
On 29 Jul 2008, at 01:00, Elliot Chyba wrote:
> I''m integrating Lightview,
> http://www.nickstakenburg.com/projects/lightview/, into an
> application.
> It''s more or less a content overlay similar to a light box, which then
> calls the content either through an IFRAME or Ajax request. The IFRAME
> works fine but for obvious reasons, I''d prefer to use
2010 Dec 27
6
RVM Issue
I''m a total rails newb and is trying to install RVM. The terminal
tells me that RVM installed just fine but when I try commands like
"rvm notes" or "rvm install 1.9.2" I get: "-bash: rvm: command not
found"
Does anyone know why?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to
2016 Jan 26
2
Re: starting a domain only when you have enough resources
On Tue, Jan 26, 2016 at 1:51 PM, Michal Privoznik <mprivozn@redhat.com>
wrote:
> On 26.01.2016 14:35, Andrei Perietanu wrote:
> > On Tue, Jan 26, 2016 at 12:39 PM, Michal Privoznik <mprivozn@redhat.com>
> > wrote:
> >
> >> On 26.01.2016 12:30, Andrei Perietanu wrote:
> >>> Hi all,
> >>>
> >>> I am running KVM on a 3.18
2013 Mar 06
1
CARET and NNET fail to train a model when the input is high dimensional
The following code fails to train a nnet model in a random dataset using
caret:
nR <- 700
nCol <- 2000
myCtrl <- trainControl(method="cv", number=3, preProcOptions=NULL,
classProbs = TRUE, summaryFunction = twoClassSummary)
trX <- data.frame(replicate(nR, rnorm(nCol)))
trY <- runif(1)*trX[,1]*trX[,2]^2+runif(1)*trX[,3]/trX[,4]
trY <-
2007 Apr 12
2
Asterisk 1.2.17 and Cisco 7940/SIP: bug or what?
Hi.
I'm stuck into an odd situation.
Here's what happens:
4 Thomson ST2030S
2 Cisco 7912
3 Cisco 7940
2 AAstra 480i
Asterisk 1.2.17
Diva 4BRI + chan_capi
I've just upgraded yesterday from Asterisk 1.2.13 to 1.2.17.
Until yesterday, everything was just fine with 1.2.13.
Immediately after the upgrade, *all* the 7940 are no more able to
make calls, just receive them, while 7912
2008 Dec 03
2
Render and/or redirect were called multiple times in this action
I''m trying to add an application enabled/disabled flag in my
application.. This is my code.
[code=] # application.rb
...
before_filter :check_enabled_flag
private
def check_enabled_flag
application_flag = ApplicationFlag.find(:first)
if application_flag.application_enabled
redirect_to application_disabled_path and return
end
end[/code]
and for some reason
2010 Mar 23
1
caret package, how can I deal with RFE+SVM wrong message?
Hello,
I am learning caret package, and I want to use the RFE to reduce the
feature. I want to use RFE coupled Random Forest (RFE+FR) to complete this
task. As we know, there are a number of pre-defined sets of functions, like
random Forest(rfFuncs), however,I want to tune the parameters (mtr) when
RFE, and then I write code below, but there is something wrong message, How
can I deal with it?
2005 Aug 22
1
XML Builder question (Brain Teaser? or At A Total Loss?)
I''m trying my best to get Builder to give me a nested representation
of my nested database tables, but I think I''m not getting any closer
to a solution. In fact, now I''m in Syntax Error land, rapidly
approaching Missed Deadline country. Perhaps you could be the one to
save my ass?
Basically, I have Images which have many Options (intended to
represent
2006 Jul 03
0
image_tag refuses to work in email context
I have a model called ImageMailer derived from ActionMailer.
It contains a method called sent that takes some args and send email to
a recipient. Works fine. I am testing this in script/console.
I now want to start sending HTML email.
Content type is "text/html".
I can successfully deliver HTML email using the template "sent.rhtml"
thusly:
2006 Jun 16
2
DISABLE auto-escaping in image_tag helper
Is there any way to disable image_tag''s automatic escaping of special html
entities in it''s :alt tag?
Example:
>From the controller:
@sale[''title''] = ''My Company Product©''
In the view:
<%= image_tag(''path/to/file.png'', :alt => @sale[''title'']) %>
Output:
<img alt="My Company
2006 May 03
1
image_tag + ssl
Hi,
If request.env["HTTPS"] == "on", shouldn''t image_tag generate image
URLS that use HTTPS?
Joe
2006 May 06
0
file_column, image_tag, absolute paths?
The docs in the SVN version of file_column state that url_for_file_column
will return paths relative to the application root, and that if I pass it
to image_tag, I''ll get an absolute URL.
This doesn''t appear to be the case, at least with Rails 1.1. image_tag
returns the same app-root-based path that it''s given.
Doc bug? Rails change? file_column bug?
Jay Levitt
2006 May 30
0
url_for_file_column and image_tag not working right together
i just got file_column working and i love it. but i''m having some
problems with the urls. my application is not in the base directory, it
is in a folder called "/testapp". when i use "image_tag" with
"url_for_file_column", i get this path:
/testapp/testapp/entry/image/3/myimage.jpg
the image is located at:
/testapp/entry/image/3/myimage.jpg
to see if
2006 Jan 25
1
Using image_tag in Action Mailer???
I''m trying to send a HTML formatted email with Action Mailer and
everything works fine except for when I try to use a Rails image_tag in
my email template. Does anyone have experience doing this? I keep
getting this error
|undefined method `request'' for #<SamplesDirectMailer:0x231d4d8>|
Extracted source (around line *#7*):
|7: <div style="position:absolute;
2012 Apr 23
0
doubt on image_tag
Hello,
I am very new to ruby on rails and I am facing little problem with
image_tag.
I have two controller product and items. In product view, I have a
partial called _show.html.erb. And in items view, i call index of item
to display all products. The problem is, when user clicks on the
image_tag of the items view, i want to call partial of product view i.e
_show.html.erb.
Please help me :)
2007 Aug 13
1
link_to image_tag puts a box round my image
I''ve got a rather long conditional statement that either displays a
link_to(image_tag(blah)blah) or just an image_tag (i''ve edited it a bit
to show the structure):
<%= (article.score_from_user(:user_id => session[:user]) != -1)
?
(link_to image_tag("/images/down_arrow_grey.jpg", :alt => "down"),
:controller=>"article", :action =>
2013 Mar 09
2
Default image_tag folder
Hey, guys. In documentation i read: "By default, files are loaded from
public/images". I add for example <%= image_tag "logo.gif" %>
When i check html code in browser i see next: <img alt="Logo"
src="/assets/public/images/logo.gif">. Why folder assets? The default
should have been <img alt="Logo"
2008 May 14
1
link_to_remote with embedded image_tag
Hi-
I want to generate a link with an image embedded between the <a> and </
a> so when the user clicks on the image the ajax call fires. I can''t
find any documentation on how to do this with link_to_remote. Is this
possible? I''d like to generate something like:
<a href = ...> <img src = .../></a>
Thanks,
Dino
2010 Dec 22
0
image_tag and send_data
i''m storing images in database.
i have this action in controller:
def image
begin
item = StoredItem.find(:first, :conditions => {:id =>
params[:id]})
rescue
return
end
return if item.nil?
if item.image_binary.nil?
render :nothing => true
else
send_data(item.image_binary, :type => item.image_datatype,
:disposition =>