Displaying 9 results from an estimated 9 matches for "_reverse".
Did you mean:
reverse
2007 Mar 22
2
Inconsistent Invalid Argument Error
I have a view with a table that contains sortable links as headings.
Here is the code used to create these sortable links in the
application_helper:
module ApplicationHelper
def sort_link_helper(text, param)
key = param
key += "_reverse" if @params[:sort] == param
link_to(text, :controller => ''sales_orders'', :action => ''list'',
:sort => key )
end
end
Here is the code in my controller where I call the sort_link_helper
function:
<tr>
<th><%= sort_l...
2006 Jun 20
4
Prototype Array bug??
...39;;
}
$(''test1'').innerHTML = $temp;
}
}
When I run this code as you see it, this is the result:
t=indexOf, undefined
t=without, undefined
t=flatten, undefined
t=compact, undefined
t=last, undefined
t=first, undefined
t=clear, undefined
t=_each, undefined
t=_reverse, undefined
t=entries, undefined
t=member, undefined
t=select, undefined
t=find, undefined
t=map, undefined
t=inspect, undefined
t=zip, undefined
t=toArray, undefined
t=sortBy, undefined
t=reject, undefined
t=pluck, undefined
t=partition, undefined
t=min, undefined
t=max, undefined
t=invoke, undefin...
2006 Aug 01
3
paginate, search, sort with ajax problem
hello I hope somebody can help me figure this out.
found this great tutorial at http://dev.nozav.org/rails_ajax_table.html.
got it working except for one thing.
I can''t seem to make the pagination work. The link_to_remote defined in
the helper is pointing to the wrong url.
I have set up things like so:
defined a search method in de project_controller located in
apps/admin/project.
2006 Sep 06
3
url_for , controller routing error
...'account_controller.rb'' in an ''admin'' module
I list the accounts with : http://0.0.0.0:3000/admin/accounts/list,
and get my table
trying to sort it, I use the follwoing sort_link_helper :
def sort_link_helper(text, param)
key = param
key += "_reverse" if @params[:sort] == param
options = {
:url => {:action => ''list'', :params => @params.merge({:sort =>
key, :page => nil})},
:update => ''table'',
:before => "Element.show(''spinner'...
2007 Sep 18
4
Prototype.js and Multidimensional Arrays
...ct
undefined
undefined
undefined
invoke
undefined
max
undefined
undefined
min
undefined
undefined
partition
undefined
undefined
pluck
undefined
reject
undefined
undefined
sortBy
undefined
undefined
toArray
zip
size
inspect
find
undefined
undefined
select
undefined
undefined
member
undefined
entries
_reverse
_each
undefined
clear
first
last
compact
flatten
without
reduce
uniq
undefined
intersect
undefined
clone
toJSONument
i test it with several versions of prototype.js but this doesn''t help
to me.
whats going wrong?
thx
kambiz
--~--~---------~--~----~------------~-------~--~----~
You rec...
2025 Jan 21
1
ggplot with major and MINOR tick marks on a log scale
...uot;log10") I have used the
equivalent scale_y_log10(), it makes the code simpler and the effect is
exactly the same. From ?scale_y_continuous:
"There are three variants that set the transform argument for commonly
used transformations: ?scale_*_log10()?, ?scale_*_sqrt()? and
?scale_*_reverse()?."
Now the code.
PopByDayByAQIminus %>%
mutate(Day = factor(Day)) %>%
ggplot(
aes(x = AQI_Cat, y = TotalPop/1000000,
group = Day,
color = Day,
shape = Day,
linetype = Day)) +
labs(x = "Air Quality Index") +
geom_point(...
2006 Aug 11
0
SQL sort
...C"
when "first_name" then "first_name DESC"
when "last_name" then "last_name DESC"
end
...
to be used in a ''sort_link_helper''
def sort_link_helper(text, param)
key = param
key += "_reverse" if @params[:sort] == param
options = {
:url => {:action => ''list'', :params => @params.merge({:sort =>
key, :page => nil})},
:update => ''zList'',
:before => "Element.show(''spinnerT'...
2006 Aug 16
0
sort_link_helper , sorting on date
I am using this helper to sort my table colums, no problem sorting on
string but how can I sort a date colum ( in my DB, )
user_helper.rb ----------------------
def sort_link_helper(text, param)
key = param
key += "_reverse" if @params[:sort] == param
options = {
:url => {:action => ''list'', :params => @params.merge({:sort =>
key, :page => nil})},
:update => ''table'',
:before => "Element.show(''spinner'')",...
2025 Jan 21
3
ggplot with major and MINOR tick marks on a log scale
I have used ggplot to create a graph on which the y-axis is on the log scale. (see data and code, below.) I would like to add minor tick marks, which will also be on the log scale. The data and code are below. I hope somone can tell me how I can modify the ggplot code so it produces minor tick marks on a log scale.
Thank you,
John
?
PopByDayByAQIminus <- dget(
structure(list(Day =