Displaying 20 results from an estimated 500 matches similar to: "ajax - layout problem."
2006 Aug 07
8
Rails Recipes question - authenticating users
Didn''t think I''d be back so quick with another question but here goes:
In this recipe for the signin or login (as I call it) there are these
two lines if the user authenticates correctly:
session[:user] = user.id
redirect_to :action => session[:intended_action],
:controller => session[:intended_controller]
So I''m not seeing anything in the way of an explanation
2007 Jul 23
1
(no subject)
Dear Sir/Madam,
I am running a R program for my SNP data. There are some errors when I run
glm model in Hapassoc software, sometimes it is over the memory and
sometimes the matrix is singular. I want to ingore these errors and excute
the next statement. Otherwise, I have a big big trouble. Do you have some
idea about this problem of ingore errors.
Wish to get your help assp.
thanks.
--
Wei
2005 Dec 05
1
Automatic time zone conversion
Dear R-help,
I was trying to convert a date and time record extracted from a fortran
subroutine I worte and I encounter some problem. The data read in time
and date in a format like "2000-05-11_01:00:00.0000" in fortran output.
It is in GMT. I need to convert it to CST (GMT+8). I did the following
steps.
> cdate
[1] "2000-05-11_01:00:00.0000\005\003"
# I am not sure
2010 Jan 15
2
[LLVMdev] <IsKill> getting from MachineOperand is just <Used> attribute from logic.
Hi,
I have ported LLC to a risc cpu. It can pass benchmark that I have at current.
But I want do some optimization after register alloction by adjusting
register using. I scan MachineBasicBlock to analyze operand's IsKill, IsDead , IsDef attribute to get a physical register's liverange. But I get a strange case at MBB.jpg.
R4 is marked <kill> at MBB0. If I scan R4's
2008 Jan 24
1
A bug in circ.plot of CircStats package
Hi,
i found a bug in circ.plot of CircStats package, namely that the plot ingore
the datasets with value = 0. it's simple to fix it, but i cannot seem to
figure out where to submit the fix. is there a official procedure of
submitting bug report/patch to the contributed packages?
--
View this message in context:
2006 Mar 21
2
SQL bug in acts_as_taggable
Hi,
excuse me if this is off-topic and feel free to ingore it in case.
I''m using acts_as_taggable (the gem version) and found what to me
looks like a bug in this code from the method tags_count:
sql = "SELECT #{t}.#{t_pk} AS id, #{t}.name AS name, COUNT
(*) AS count
FROM #{jt}, #{o}, #{t} WHERE #{jt}.#{t_fk} = #{t}.#{t_pk}
AND #{jt}.#{o_fk} =
2006 Aug 15
4
escaping html?
Hi
I have a wysiwyg html ditor in my app. How do I escape html written to the
database and encoding when I display the content>
Ty
Pieter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060815/d8c50941/attachment.html
2006 Aug 07
2
Ugggh..another recipes question
sorry, because it seems that I need more explanation on this Rails
Recipes authorization -
I finally got the code working but after using the login I get this
back from Rails-
Routing Error
No url can be generated for the hash {}
I''m guessing it''s coming from the redirect-
def login
if request.post?
session[:user] = User.authenticate(params[:first_name],
2006 Jul 09
1
Accessing the name of a controller''s module?
If I''m redirecting to a log in page, and saving the controller and
action name in the session hash, how do I also save the controller
module?
After the log in is completed, I can''t redirect back to the originally
directed page because it''s in a different controller module. For the
controller action name I can use the ActionController instance method
controller_name(),
2006 Apr 18
4
update_page yields escaped code in callback
Hi All,
The subject pretty well describes what I am experiencing. This line in
an .rhtml template:
<%= link_to_remote menu_item.humanize,
{:update => ''section'',
:url =>{:controller => menu_item},
:complete => update_page do |page|
page.activate_tab("#{menu_item}_tab", ''menu_'')
page[''section''].hide
2006 Mar 03
1
rjs isn''t update_page problems
i have a list of, for example, meal_names. Basically, I can submit a name
and the name I add shows up in the list.I had this working wehn i created an
actual add.rjs template for it. So feeling good about my self, I attempted
to move it all to the controller and use some update_page goodness. Now it
the ajax middle doesn''t happen. I don''t get any errors but the list
2006 Jun 27
4
RJS Form Values
Hi,
I have the following code :
<%=link_to_function("? | China", update_page{|page|
page[''tags_en''].value = "China"
page[''tags_ch''].value = "?" }) %>
This updates two text fields with the China and ?. However I want to
append the values, not replace them. So I need something like this :
2011 May 26
2
virtual bios question
Hi, when user create the virtual machine, then:
which code execute firstly, hvmloaer or qemu-dm?I have traced the codes flow
and found qemu-dm run before hvmloader,right?
And virtual bios code are both in hvmloader and qemu-dm, but I think it
should be only one of virtual bios
will be used to initialize the virutal device in qemu-dm.I find at the end
of hvmloader it will jmp to 0xffff0, that
2007 Nov 06
10
Test case for file import
Hi Friends,
I need to write the testcase for fileimport.
Pls give me any idea
--
Posted via http://www.ruby-forum.com/.
2010 Jan 15
0
[LLVMdev] <IsKill> getting from MachineOperand is just <Used> attribute from logic.
On Jan 14, 2010, at 6:39 PM, 任坤 wrote:
> But I want do some optimization after register alloction by adjusting
> register using. I scan MachineBasicBlock to analyze operand's IsKill, IsDead , IsDef attribute to get a physical register's liverange. But I get a strange case at MBB.jpg.
You can also look at RegisterScavenging.cpp and MachineVerifier.cpp. They are doing the same
2008 Jan 19
5
"should_not ==" vs "should !="
describe "should_not == vs. should !="
it do
5.should_not == 6
end # passes
it do
5.should != 6
end # fails
end
# I''m running the rspec 1.1.2 gem with the corresponding Textmate bundle
# The second failure surprises me.
# Is != not supported?
# I''d like to hear what you all think.
-------------- next part --------------
An HTML attachment was
2007 Jan 20
2
Conditional pluralize without the number
Hi.
Assume you have an array of person names. I want to generate results in
my view that look like this:
Abby is your friend
or
Abby, Bob, and Carol are your friends.
So I''d like to say:
<%= friends.to_sentence %>
<%= pluralize(friends.count, "is") %>
your <%= pluralize(friends.count, "friend") %>
But because pluralize puts in the
2008 Jun 03
5
Autotest/RSpec 1.1.4/Rails 2.1 Infinite Loop?
I just got back from RailsConf, and upgraded on of my development apps
to 2.1, and now autotest is going into an infinite loop. It runs tests
continuously instead of waiting for files to be saved before rerunning.
Has anybody else seen this, or know how to get around it?
Thanks,
Andrew
2007 Nov 01
8
Specifying mixins
Hi folks,
Can anyone share some accumulated wisdom about the best way to spec
mixins in general, and (Jamis Buck-style) ActiveRecord "concerns" in
particular?
The standard situation here is that there''s a bunch of functionality,
related by concept if not by implementation, that one wants to inherit
in many different classes (e.g. ActiveRecord models) without having to
2006 Jan 30
5
a RJS problem/patch
Hi,
add_rjs_to_action_view.rb of javascript_generator_templates
doesn''t work with setting Content-Type in a controller.
(e.g.) http://wiki.rubyonrails.org/rails/pages/HowtoSetDefaultEncoding
class ApplicationController < ActionController::Base
before_filter :set_charset
def set_charset
@headers["Content-Type"] = "text/html; charset=utf-8"
end
end
I