Displaying 20 results from an estimated 73 matches for "codyfauser".
2006 Mar 04
29
Getting RJS / EgdeRails working
Hi,
using Rails 1.0 on windows (without svn yet) I just wrote "rake
freeze_edge". Are the RJS-templates already included then ? When I write
"rake update_javascripts" I receive this error:
svn: ''.'' is not a working copy
Any tipps for a newbie on how to get the update done (if neccessary) ?
thx
Jan
2006 Jun 13
21
RJS Templates for Rails
...and finishes off with some reference material.
The book is 56 pages and is available in PDF format. I''m really happy
with how the book has turned out and I think you''ll really enjoy it.
You can find the book at http://www.oreilly.com/catalog/rjsrails/
--
Cody Fauser
http://www.codyfauser.com
2006 Mar 07
12
rjs and partials
I''m trying to update a list, and having a hard time applying visual effects
to the latest element created. Here is what I''m doing.
===========================================
1) Creating an "item" via an action, then rendering the RJS template
2) RJS template looks like this:
page.insert_html :top, ''items'', :partial =>
2005 Dec 25
5
RJS not working?
...to add a simple rjs ''delete'' method to my
project. However, no matter what I try, it simply doesn''t work. Even
the easy, easy stuff seems broken. (Yes, <%=
javascript_include_tag :defaults %> is being included in the template.)
For example, from:
http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates
VIEW:
<h1 id=''header''>RJS Template Test</h1>
<ul id=''list''>
<li>Dog</li>
<li>Cat</li>
<li>Mouse</li>
</ul>
<%= link_to_remote("Add a fox",...
2006 Apr 11
12
RJS
I am trying to use RJS as shown in this tutorial :
http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates
However it does not seem to work. I am not getting any excpetions in
the logs. Here is what the logs say :
Parameters: {"action"=>"add", "controller"=>"homepage"}
Rendering homepage/add
The homepage/add i...
2005 Dec 15
2
Rails 1.0 & RJS Templates
Hello all,
I just successfully updated my dev env to Rails 1.0. I then wanted to
get .rjs templates working and followed Cody''s instructions at
http://www.codyfauser.com/articles/2005/12/02/rails-rjs-templates-plugin
. However, when I try to run ''rake test'' I get the following error:
(in
/Users/jason/projects/workarea/biolexis/trunk/rails/vendor/plugins/javascript_generator_templates)
/opt/local/bin/ruby -Ilib:lib
"/opt/local/lib/ruby...
2006 Apr 07
5
RJS support "toggle" effect?
Does RJS inherently support the Element.toggle effect? I haven''t been
able to call it the way you call "appear", "fade", etc...
Jeff
--
Posted via http://www.ruby-forum.com/.
2005 Dec 23
13
how to form.rest in RJS
is there any way to Form.reset (clear all fields of the form ) in
form_remote_tag generated form?
I want to reset fields after ''submit'' in .rjs.
--
Hiroshi Takagi <gollum-u1eKKkw+WM0gE89CWYshPg@public.gmane.org>
2006 Mar 27
7
rjs template ? (how to check for existence of a dom element?
In my rjs template I''m using the following line.
page.visual_effect :slideUp, ''comment_error_details'', :duration => 0.5
It works fine if I have created the div with the
id="comment_error_details",
but if I haven''t created the error yet then my whole rjs template fails.
How can I check to see if an element has been created? I could then put
2006 Mar 13
3
problem updating mulitple divs with ajax
i''m having some issues updating multiple divs via ajax. perhaps someone can
lend some assistance.
i''ve got 2 divs:
user_list and user_form.
when a person clicks the "edit this user" or "add new user" link the
user_form div is updated via an ajax call and the form is shown in the
user_form div.
this form is a remote form. it submits to either the update
2006 Apr 08
2
Cannot use view helpers in RJS helpers
Any ideas why I would get an error in a RJS helper on view helpers
such as number_to_currency.
Example:
# my_template.rjs
page.help_me
# my_helper for my_controller
def help_me
number_to_currency(10)
end
I have also tired page.number_to_currency but that doesn''t work either.
Cheers,
Nicholas
2006 Feb 08
2
301 Redirect with Rails
I have been searching for a way to do this but haven''t found anything yet.
Can anyone please guide me to a resource or tell me how I would go about doing a 301 (Moved Permanently) redirect using Rails?
Thanks
Frank
---------------------------------
Yahoo! Mail - Helps protect you from nasty viruses.
-------------- next part --------------
An HTML attachment was
2006 May 05
6
rake rails:update
This question has been asked before, but I am still can''t run rake
rails:update. I get
rake aborted!
Don''t know how to build task ''rails:update''
My environment: FC4, Ruby 1.8.4, Rails 1.1
Any idea what to do?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Mar 14
2
rjs woes
i''ve just installed the RJS plugin per cody''s instructiuons and read through
tutorials. I''ve made the necessary changes to my existing code and
everything appears to be working, except that the returned javascript is not
being evaluated...
here''s my setup:
i have a checkbox with an onclick event pointing to a javascript function.
this javascript function does
2005 Dec 16
2
Edge Rails Instructions out of date?
hello all,
I currently have Rails 1.0 installed, and was hoping to get the latest
edge rails. Following the directions found at:
http://wiki.rubyonrails.com/rails/pages/EdgeRails
I ran the following command:
rake freeze_edge
The command ran without a problem. When I went to update my
application, however, by running the following command:
ruby
2006 Mar 28
5
RJS call from controller issues javascript that doesn''t get evaluated by browser
Hi,
I''m on Rails 1.1 and I have a problem wit RJS
In my cotroller i have
==>>>
def show
@contact = Contact.find(params[:id])
render :update do |page|
page[:contactInfo].replace_html :partial=>"contactInfo"
end
end
<<<===
And my contactInfo partial looks like this and it''s placed inside a div element
==>>>
<table>
2006 Jan 29
9
Specify options with habtm
Hi all
I have the following models:
class member
has_and_belongs_to_many :disc_jockeys
end
class disc_jockey
has_and_belongs_to_many :members
end
The relation table is called disc_jockeys_members and has the following
fields:
disc_jockeys_members(disc_jockey_id, member_id, status)
So far, the field status can have values like valid, invalid, locked
etc., but it is not regarded yet by
2006 Jan 12
5
Ajax: Multiple Element Update
I''m trying to apply an Effect.Highlight only to elements of a Form that was
submitted.
So if a user updated 2 fields of a 10 field form, the Effect.Highlight would
be applied to the 2 fields... showing the user what was updated.
My first attempt was to use the :complete=>"eval(request.responseText)" ...
however, the template that get''s rendered won''t know
2006 Mar 23
3
RJS plugin and rails 1.1
Currently I''m using the RJS plugin for my app. After I upgrade to the
soon-to-be-released 1.1 (which has RJS support built in), will anything
break after removing the plugin? Has anyone messed with the release
candidate and RJS yet?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 29
2
vim syntax highlighting of rjs templates
Are there config files for vim that offer syntax highlighting of rjs
templates?
Charlie Bowman
http://www.recentrambles.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060329/486c9d84/attachment.html