Displaying 20 results from an estimated 3000 matches similar to: "Ajax in Rails"
2010 Jun 18
2
[PATCH] hdt & gcc -Werror
From: Gene Cumm <gene.cumm at gmail.com>
Fix several calls to more_printf() as eventually printf() is called
without a literal string which generate warnings with gcc and lead to
errors when -Werror is active.
Signed-off-by: Gene Cumm <gene.cumm at gmail.com>
The message "format not a string literal and no format arguments" at
first seems strange but by doing this change
2007 Sep 20
2
Rendering a partial from within that partial
I am having trouble rendering a partial called ''names'' through a submit
tag located within that partial. The form data is saving with my current
code. However, the existing data is not loading into the form and the
partial is not being re-rendered upon submission to reveal the changes
to this data.What might I do to fix this?
show.rhtml
<%= javascript_include_tag :defaults
2006 Jul 14
9
DRY Javascript Degredation
Hi,
It seems there must be a better way to do this than what I am
currently doing.
I have a simple app that collects a users thoughts along with their
email address and their first an last name. On a page that lists all
the users thoughts they can click on a link to "add a thought" which
then displays a form with ajax. My current methodology for this is
not very dry. If js is
2007 Apr 25
2
form_remote_for, reloaded
Hi,
being relativly new to RoR, I''m having a problem which I found described
in this forum and somewhere else - but with no solution. I know, that it
may be bad to mix table and form tags, but the first solution of an in
place editing within a table looked nice:
Version using form_for:
<tr>
<%form_for :time_record, :url => { :action => "add_time_record" } do
2009 Feb 10
2
form_remote_for NOT passing param: I want put and I get post
Hello,
I''m struggling my brain with this ajax issue ...
Basically I have a form for creating records, and I want to submit it
using Ajax.
On previous versions of RoR (2.0.2) it was working, but the same methods
doesn''t work on 2.2.2, and I started to make changes and changes and
read forums and the api, but no way ...
<% form_remote_for (:expedient, :url => {:action
2006 Jul 21
1
Passing a variable between methods
Hi,
I am trying to add search functionality to may application. I am
struggeling to pass my query to the controller and then show all my
search results in another view. How would I do this?
Model:
class Advert < ActiveRecord::Base
belongs_to :user
def self.search(query)
if !query.to_s.strip.empty?
tokens = query.split.collect {|c| "%#{c.downcase}%"}
2008 Jul 14
5
How can i use link_to_remote with in form_for
Hi
anybody plz help me how can i use link_to_remote with in form_for.. i
tried but no luck... if i use form_tag i can able to use link_to_remote
and made ajax call.but i need to use form_for ....can anyone help me how
can i do with this.Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2008 Feb 24
5
adwords on eee-pc
Hi,
I am a total wine noob - trying to get adwords editor running under wine (version .9.55) ll seems to be finie, installed the adwords .msi under the msi installer, added a couple of missing DLLs (mscvr71 & mscvp71) but now adwords edit I get the following errors:
ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
fixme:system:SetProcessDPIAware
2006 Aug 03
5
Multiple Loading events in form_remote_for
Is it possible to have multiple loading events in the params for
form_remote_for?
I''d like to do this :loading => "Element.show(''form-indicator'') and
this :loading => "Element.hide(btn-submit'')
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Mar 20
5
Google AdSense question to Rails community
Hello everyone!
I''m not sure if it''s right place to ask, but what is your experience
with google adsense? I plan to implement free web service for
community and would like to cover hosting costs. Is adsense worth the
hassle?
olegf
2008 Nov 04
1
Please Update Your Billing Information.
---------------------------------------------------------------------------
This message was sent from a notification-only email address that does
not accept incoming email. Please do not reply to this message. If you
have any questions, please visit the Google AdWords Help Centre
-----------------------------------------------------------------------------------
Hello Advertiser,
Our attempt
2008 Nov 04
1
Please Update Your Billing Information.
---------------------------------------------------------------------------
This message was sent from a notification-only email address that does
not accept incoming email. Please do not reply to this message. If you
have any questions, please visit the Google AdWords Help Centre
-----------------------------------------------------------------------------------
Hello Advertiser,
Our attempt
2008 Nov 04
1
Please Update Your Billing Information.
---------------------------------------------------------------------------
This message was sent from a notification-only email address that does
not accept incoming email. Please do not reply to this message. If you
have any questions, please visit the Google AdWords Help Centre
-----------------------------------------------------------------------------------
Hello Advertiser,
Our attempt
2015 Jan 29
2
[Q] Get formal arguments of my implemented S4 method
I wish it didn't have to depend on the name '.local'.
Back when I wrote a lot of S4 methods I avoided the auto-generated .local
and named the local function something that made sense so that is was easier
for a user to track down the source of an error.
E.g., define the generic QQQ with numeric and integer methods:
setGeneric("QQQ",
function(x, ...)NULL)
2006 Apr 02
5
Showing current user''s information and saving
Hi,
I am logging users in and keeping them in session. The problem I am
having is showing only a certain logged in user''s information.
In the Adverts_Controler:
def show
@advert = Advert.find(params[:id])
end
I am also having issues with saving an advert for an user:
def create
@advert = Advert.new(params[:advert])
if @advert.save
flash[:notice] = ''Advert
2015 Jan 29
3
[Q] Get formal arguments of my implemented S4 method
On Jan 28, 2015, at 6:37 PM, Michael Lawrence <lawrence.michael at gene.com> wrote:
> At this point I would just due:
>
> formals(body(method)[[2L]])
>
> At some point we need to figure out what to do with this .local() confusion.
Agreed, definitely. The current hack is to avoid re-matching arguments on method dispatch, so a fix would need to be fairly deep in the
2007 Aug 29
2
assign local variable instead of instance variable.
Hello,
I have a view that generates a list of adverts with <%=
render :partial => ''advert'', :collection => @adverts %>
I have the render call described with
@controller.template.should_receive(:render).with(:partial =>
''advert'', :collection => @adverts)
Bu when i was about to describe my partial i got stuck.
My partial _advert.rhtml:
2007 Mar 14
9
file_field doesnt work inside form_remote_for
When I do file_field within a form_for things are fine... but within a
form_remote_for, with nothing else changed, I find that the params
does not even have the element document[uploaded_file] even though it
is definitely present in the HTML source in the form. Obviously the
file upload fails.
Am I missing something? Or has someone else faced this? Or is this a
known bug?
Rajesh
2006 Apr 02
1
One to Many Relationship Issues
Hi,
I am having issues with a one to many relationship(it never works :-)).
Jokes aside, I am getting an error:
Mysql::Error: #23000Cannot add or update a child row: a foreign key
constraint fails: INSERT INTO adverts (`image_url`, `price`, `title`,
`website_url`, `description`, `user_id`) VALUES(''bb'', 22.0, ''aa'',
2009 Aug 02
4
Web
I have the following issues on a website, would like to know how would
you resolve these issue?
1- CSS is not used efficient.
2- Search engine need to be optimized.
3- Java Scripts are placed between HTML tags.
4- Redirecting homepage through JS code, using client side
5- Web page delay, a lot of objects.
6- Disable listings directories from apache (how)
7- web not compatible with Firefox
Thanks