Displaying 20 results from an estimated 500 matches similar to: "Multiple submit buttons"
2006 Apr 09
8
Computer Name
How to get the name of the computer accessing the application? I mean
the computer the user use to access the application.
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 07
3
Different validation for different users
Hi,
I have two types of users; normal user and admin.
I have a field called priority in the table task.
This priority field is invisible to the normal user, but not to the
admin. The admin has to fill in the priority field when he adds a record
via filling a form. Thus, i need to add validates_presence_of :priority
to the model task. But, if i do this, then the normal user can''t add a
2006 May 23
1
Detecting internet connection
Hi,
Is it possible to detect whether the internet connection is on from the
application?
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.
2006 May 23
6
Accessing file in public directory
How do i access a file in the public directory of rails application? I
have several html files in there and i want to link them from the rhtml
file. Basically to display a popup. Here is the code in foo.rhtml:
<a href="javascript:popUp(''/summary.html'')" class="normal">Learn
more</a>
It doesn''t work. Any idea why?
Thanks,
Lantis.
--
2006 Mar 31
2
W3C Standard
I''m rather new to web programming. I''m wondering, does rhtml file
conform to W3C standard? Or is there a way to make it conform to W3C
standard?
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 16
5
ActionMailer
Is there a way to connect to a SMTP server that requires TLS since
ActionMailer doesn''t support it?
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 19
4
RJS replace_html auto-closing tags
I''m using the following RJS template to spit out a div containing a
list of projects:
page.replace_html ''results'', ''<div>''
@projects.each do |p|
page.insert_html :bottom, ''results'', p.name + "<br/>"
end
page.insert_html :bottom, ''searchresults'', ''</div>''
page.show
2006 Apr 07
2
page.replace_html "#{var_containing_id_name}", :partial => ''edit''
The subject line says it all. -- Is there a way to do something like:
page.replace_html "#{var_containing_id_name}", :partial => ''edit''
That line of code does not work, but I would like to pass the name of
a variable to page.replace_html. This variable would contain the id
of the div I want to update.
Anyone know if/how I could do that?
Thanks!
: )
Jason
2006 Apr 10
2
RJS newbie - need help with iterating / existence test
Greetings!
I''m new to Ajax and am trying to get a basic app working as a vehicle for learning it. The app is an extension of the cookbook tutorial. My intent is to be able to add a list of ingredients for a recipe. The page to add ingredients uses Ajax. As ingredients are added to the page they''re displayed in a "green-bar" format like that used in the Depot
2006 Apr 17
5
Finding out updated fields
Hi,
When we update a record via an update form, is there an easy way to find
out the fields that have been changed. If the update is successful, i
want to display:
The following fields have been changed:
field-name = new-value
...
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 10
3
form_remote_tag : additional onsubmit funct. possible ?
Is there a way to add onsubmit functionality to a form_remote_tag with
an additional javascript directive?
eg I''d like for an inline javascript to make the form''s div container
hidden as soon as the button is pressed to avoid having it possibly get
pressed again ( sometimes the rails response is slow enough for a user
to think they need to re-press it ).
example:
<div
2006 Apr 10
6
image_tag adding request parameter
I have noticed that the image_tag helper method now appends a request
parameter to the generated src attribute. With Rails
1.0/actionpack-1.11.2 I had
<img src="/images/rss.gif" />
Now (1.1/1.12.1) I get
<img alt="Rss" border="0" src="/images/rss.gif?1142366545" />
Is there any use for that number? Where does it come from?
This is very far
2006 Apr 10
1
column.name question....
rHTML is
<% for column in Wizard.content_columns %>
<p>
<%=h @wizard.send(column.name) %>
</p>
<% end %>
It outputs:
Robs Site
Heading
logo.jpeg
London
------
Bascally 1 line for each column in the database. How do I edit the
rhtml so I can break up the output?
For instance JUST have ''Robs Site'' display nothing else. That mysql
column is
2006 Jun 08
0
Question about searchgenerator
Hi,
I am using the search generator in my application. How do i incorporate
this to the application when i deployed it on a host since i can''t
install simplesearch via gem on the server? I tried unpacking the gem on
my local machine. I got the folder SimpleSearch-0.5.0 and i added it to
the vendor directoy of rails. I also added ''require_gem simplesearch'' to
the
2006 May 24
0
Error in running functional testing
Hi,
I got the following error when i tried to run functional testing:
D:\Uni\Programming\Ruby\Project\test>ruby
functional\devices_controller_test.rb
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependenci
es.rb:200:in `const_missing'': uninitialized constant
ApplicationController (Name
Error)
from
2006 May 29
0
Display problem in IE
Hi,
I''m using the stylesheet from AWD book and i have the following display
problem in IE:
http://oktaviandi.blackcurranthost.co.uk/IE%20Display.jpg
I used a two-column layout and i guess the error highlighter fills in
the entire width of main column.
How do i fix this?
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 07
3
RJS removing content of div, but not div itself
Hi,
I''m creating a list of ingredients on a page. When the user clicks the ''Add Ingredient'' button a record gets added to the db and the ingredient gets added to the page. On the page, each record is represented by a <div> with three <span>s inside. One of the <span>s has a link_to_remote to ''delete'' the ingredient. When the link
2006 Apr 08
1
How To ??? change class of DIV
I''m trying to replicate the "green-bar" effect used in the Depot app using Ajax. And I''m almost there ;-) I''m about to set off on the last stage and would appreciate any advice that would set me off in the right direction.
On the page, each record is represented by a <div>. Each <div> has id = "item#{record.id}" with class = either
2006 Apr 10
3
preloading child rows just a level deeper...
hiho.
following problem.
i have 3 tables in my database with each representing an object.
lets say
A belongs_to B belongs_to C.
when i do
my_a = A.find(:all)
i can access B as my_a.b and C as my_a.b.c
thats fine but rails querys the database each time i do that
so is use
my_a = A.find(:all, :include => :b)
works fine for my_a.b but not for my_a.b.c
so i tried
my_a = A.find(:all, :include
2006 Apr 10
4
has render_component changed?
I have an application that worked fine, but after the recent updates
has broken in some calls to render_component from views. I might be
missing something but as far as I remember Rails updates is the only
thing I''ve done in between. See the log:
*** START LOG SNIPPET
Start rendering component ({:params=>
{:center_id=>10, :id=>25},