Displaying 20 results from an estimated 500 matches similar to: "Graceful degrading AJAX show/hide"
2006 Apr 12
8
500 Server Error - stumping me at the moment
I''m trying to deploy an app on Dreamhost and I''m getting the infamous
500 Server Error.
Nothing in the rails logs because it looks to be happening before it
gets there.
In the apache error logs we have:
[Wed Apr 12 12:51:51 2006] [error] [client 194.80.32.9] FastCGI: comm
with (dynamic) server
"/home/rlivsey/thatsprogress.com/current/public/dispatch.fcgi"
2006 Jan 23
1
Do you know a decent ROR newssite??
Hi,
is there a really cool website for the latest ruby on rails news??
The official page remains fairly stagnant and i dont know anywhere else
to look.
Any ideas?
--
Posted via http://www.ruby-forum.com/.
2006 May 11
7
[ANN/ADV] Ruby for Rails now published in paper!
Hi --
I''m on the road, so I haven''t laid eyes on it yet -- but word on the
virtual street is that "Ruby for Rails: Ruby techniques for Rails
developers" is now out in paper.
It will probably take a little longer to trickle to your neighborhood
Barnes and Noble... but you can order it now from the publisher. See
http://www.manning.com/black. And trickle it will, too.
2006 Jul 13
2
partial_counter
Hi,
i was wondering if there was any conventional way to find out (via the
partialname_counter, or any other way) which partial is the last in a
set of partials ( render :partial => ''name'', :collection =>
''@somethings'') so that i can display some kind of variable in the last
partial.
there''s got to be some neat way to do this?
(like setting
2006 Apr 24
9
A Stylesheet for a database app
Hi to all, I''m a new subscriber of this list and a new user of RoR.
I''m looking for a stylesheet to make a simple database app nicer, a css to
start working with.
I have to do some simple apps and I want them to be the more uniform on the
presentation side.
I know I can do it for myself, but a nice stylesheet is not so easy to perform
for a non-grafic geek like me, and so
2006 Feb 27
8
Newbie question - Automatically update _form.rhtml?
Hi all, I''ve got an odd issue. I''m new to Ruby/Rails and have a bit of a
silly question. I''m following along with the nice little tutorial here,
to get an idea of the system:
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=3
However, I''m running into an issue where the author adds a new field in
his database, refreshes the browser and shows
2006 Apr 08
0
Understanding observe_form...
Hi all,
I''m trying to understand the workings of the observe_form function.
In my application I have a search form with a number of parameters, and
I want to have a live search counter on screen, so as the user chooses
different parameters, she can see a live count of how many search
results match.
What I''m not clear on is how to use the "with" option, and what
2006 Jul 18
4
Multiple Layouts - Single Controller
How do I do multiple layouts for a single controller:
I am aware I can do... render(:layout =>''mylayout'') for individual
actions, however this becomes a multiple render problem.
I tried this...
layout "mylayout", :except => [:myaction, :myotheraction]
layout "myotherlayout", :only => [:myaction, :myotheraction]
However that doesn''t
2006 Jun 27
2
Using a different layout/styleshheet
Hi,
I have a view that I use to display and capture data. Once the user
has input the required data, I then need to be able to print the view.
I know that I can setup a stylesheet to take care of the page layout
but it is not clear to me how I will make the print view call the new
layout.
If anyone could clarify this or point met in the right direction, I
would be most grateful.
Regards,
Paul
2006 Feb 06
6
.rjs template doesn''t load?
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060206/cf123b71/PGP.bin
2006 Jul 06
6
Class variables in templates/layouts
I''m having problems with class variables.. I have a class:
class Content::ApplicantsController < ApplicationController
layout "mylayout"
@@tab = "mystring"
[... the rest is standard scaffold-created stuff ...]
and a layout (mylayout.rhtml):
[...]
<title><%= @@tab.capitalize %></title>
[...]
And I keep getting this error:
uninitialized
2006 Jul 05
4
degrading gracefully - how to tell if JS is enabled?
Is there a RoR best practice wrt determing in a visitor''s browser has JS disabled? Is there even a way to find out? I''ve got a couple of pages in my app that are not going to degrade gracefully at all. I really need to point a visitor who has JS disabled down a seperate path. Any ideas?
Thanks,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
2006 Jul 25
6
DRY question (newbie)
Say i want to include the same chunck of text (a menu on a webpage for
example) on each page. Is there a method by which I can save the HTML in
a text file and call it up later? Is there a better way?
I know ruby has "puts" but i can''t use that b/c it does not work with my
webhost (dreamhost.com)
Any suggestions?
--
Posted via http://www.ruby-forum.com/.
2012 Jul 09
2
mfrow and centering plots when there's an odd number
Let me start with an example:
par(mfrow=c(2,3))
for (i in 1:5){
x = rnorm(100)
y = .5*x + rnorm(100, 0, sqrt(1-.5^2))
plot(x,y)
}
Note that there's five plots and six spaces for those plots via mfrow,
leaving one row empty. Is there a way to have the bottom two plots
centered? I think it looks weird to have them left-justified. Thanks in
advance for the help!
--
Dustin Fife
PhD
2006 Apr 01
3
Gracefully degrading Ajax AND Drying up actions
Still a semi-newbie, but so far I''ve managed to solve most things with a
bit of help from the Agile book, some googling around, and a bit of
trial-and-error, but I''m really stuck with this one (very much an Ajax
newbie):
I know how to gracefully degrade an AJAX newpost type call so it can
appear inline or (for those without JS support) go to a new page (put an
":href
2012 Oct 12
3
CheckBox with Value and Drop down menu
I am a newbie in Ruby. I would to ask from all the experts in Ruby on
how to create a checkbox with value as well as a dropdown menu. I want
it like this site
http://www.celiac.com/glutenfreemall/advanced_search.php. Their search
form is good and I want to learn every aspect in doing it. Hope you can
give me a step-by-step tutorial in doing it.
Thanks in advance.
--
Posted via
2006 May 31
5
Help with sorting arrays with objects in it
I have to build an array through both activerecord and also through a ferret
index.
I was hoping to find a way of sorting the array as i combine the two so
def advanced_search(search_text, store, format, sortby)
# find items in ferret index
items = Item.find_by_contents(search_text)
# and now find all the items from a certain store or category
items_from_sql = Item.find_by_sql("SELECT *
2006 Jun 23
2
Queue 3 or more RJS actions
My .rjs file
page.visual_effect :BlindUp, "people", :queue => ''front'' #first action
page.replace_html "people", :partial => ''person/person_compressed'',
:collection => @search_results , :queue => ''end'' #second action, after
first is done
page.visual_effect :BlindDown, "people" , :queue =>
2006 May 12
3
How to implement a global partial?
Quick question:
Whats the easiest way to implement a global partial? Where I can call
one partial from many different controllers (err controller views)?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 22
0
Problem with change_password action in LoginEngine
Hi, I just setup the Login engine and everything seems to be
working... but the change_password action. The fact is that the user
receives the mail telling him to visit the app''s change_password page
in order to enter a new password, but I get an undefined method error
in my controller when rendering <%= error_messages_for ''user'' %>.
Tracking down the issue, I