similar to: why validation on server side

Displaying 20 results from an estimated 6000 matches similar to: "why validation on server side"

2006 Feb 18
44
I forgot. Why do we hate* Java?
Hi, I''ve started reading some Java books. Gasp! What makes website development with Java so bad? I haven''t looked at Struts but I''m reading about Hibernate. Compared to ActiveRecord, Hibernate seems like some extra typing to explicitly define the model fields, getters and setters. I know that these are things that you can do in ActiveRecord when things get complicated
2006 Jul 21
20
Struts vs RoR
hi, I recently attended one of the ruby meetings that we have in my city. There one of the speaker said that google,amazon .. are working on RoR but still the performance of RoR is not at par with J2EE others.... he meant that though google,amazon working o it they will not bring it as front applications only parts the reason ruby is slow in comparison to other languages.... and in real time
2006 Jun 18
5
on change of drop down showing a new textfield
hi, i have a situation where i have a list of options from which a user selects his options if its not in the list he/she selects Others/Not Present and a new textfield should pop up and the data entered there should be considered instead of dropdown. i have done this using javascript/dhtml but i was wondering how this can be done using pure rails i.e using some of the RoR apis?. i would
2006 Jun 18
3
on change of drop down a textfield emerging
hi, i have a situation where i have a list of options from which a user selects his options if its not in the list he/she selects Others/Not Present and a new textfield should pop up and the data entered there should be considered instead of dropdown. i have done this using javascript/dhtml but i was wondering how this can be done using pure rails i.e using some of the RoR apis?. i would
2006 Nov 04
4
live search
hi all, i have implemented live search using scriptulous and i am getting the list the problem is that when i select an item from the list white spaces gets appended in front " item" of the selection in firefox and in opera front and behind " item " i printed the value in console and saw it gives "item" but in textbox after selection whitespaces gets appended
2006 Jan 19
7
validates_numericality_of positive integer
Hi, What is the simplest way to validate a positive integer? validates_numericality_of :foo, :integer_only => true how do I add the positive part? Do I need another validation statement for pattern matching or do I have to write a validate() funciton for my model? Thanks, Peter
2006 Jul 14
39
Time to split the list?
I hope no one gets offended by my asking, but I wonder what others think about the possibility of splitting the list into two or three focal areas. Personally, I think I''d like to see three seperate lists: 1) newbie development (e.g., help working through tutorials, etc.) 2) more advanced development topics, 3) environment setup / admin.. What do you think? Best regards, Bill
2006 Nov 04
2
sql query in active record
hi all, if i want to write a query select * from a,b where a.b_id=b.id in active record using joins,condition how can i write that in docs i found for conditions you do by giving "?" and then the parameter eg. a.b_id=? but it takes b.id as string i.e a.b_id=''b.id'' i dont want that any suggestions thanks in advance regards gaurav -------------- next
2006 Apr 26
10
save new model with child model
Hi, I am having a problem saving a new model that has an associated child model. If a new ticket is being created and will have one comment to go with it then I tried this in my action @ticket = Ticket.new(params[:ticket]) @comment = Comment.new(params[:comment]) @ticket.comments << @comment if @ticket.save @notice = "Ticket added. Thanks for
2006 Mar 22
14
currency conversion webservice in a rails app?
Hi, I''m interested in using a currency conversion web service in my rails app. Does anyone have a free service that they use and like? I found this one http://www.webservicex.net/WS/WSDetails.aspx?CATID=2&WSID=10 I''ve tried to make a simple, plain Ruby script to connect to this and get a conversion rate without success. How do I integrate a webservice into my rails app? I
2006 Jul 07
5
Can a route require POST or GET? / REST problem with routing
Hi, A store front a customer wants to GET /product/5/show. But for the application this is really GET /cart_item/new/5 or even better /cart_item/new?cart_item[product_id]=5 When the customer clicks add_to_cart they POST /product/5/show so that the url doesn''t confuse the user when any validation errors occur. But for the applicaiton this should be POST
2006 Apr 01
4
problems getting ActionMailer working (on server)
Hi, I''ve read the Agile Rails book''s chapter on ActionMailer a few times. Seems pretty straight forward. Unfortunately I can''t get my application to actually send mail. I uploaded my application to the web server and tried to get a mail message sent. Nothing happened. I looked in the log file and it says Sent mail: From: service@freedomkilts.com To:
2006 Jun 29
3
stylesheets
hi, all i have been playing around with rails for sometime, i have seen most not all of the rails sites have similar look and feel (good one) i want to know how to use the stylesheets provided by the RoR framework if any or is it that we have to define on our own from scratch. basiclly i need information regarding how can i make my view better looking(the visuals) Thanks in advance warm
2006 Jan 26
8
switching to edge rails
Hi, I want to start using has_many :through. I think that eventually I''ll be removing all uses has_and_belongs_to_many from my project. Here is my situation I''m using SVN I want to use edge rails Reading the wiki about switching to edge rails[1], I can''t figure out which combination of subsections I must perform. Do I want edge rails to reside in the vendor
2006 Apr 26
3
catch all error for incorrect urls etc
Hi, I am changing a very standard old school website to rails. When I make the change to rails, all of the old urls will not be valid. If a person has a bookmark to an old web page I would like them to be directed to the front page of the new website www.domain.com. How do I do this? Do I do something in routes.rb? Thanks, Peter
2006 Feb 09
2
_marker in dragdrop.js
Hi, I''ve been confused about the purpose of _marker in dragdrop.js for quite a while. It doesn''t really look like it does anything with ghosting on or off. I removed the mark method and didn''t discover any problems. Is all the mark business a relic from some past idea? Thanks, Peter
2006 Jan 23
4
an image that is a clickable link?
Hi, How do I make an image that is a clickable link the rails way? Is there a view helper for this? Thanks, Peter
2006 Mar 08
12
favorite FTP client of railers
Hi, Which FTP client would fit in nicely with OS X and Textmate. Thanks, Peter
2006 May 27
5
ActiveSupport JSON working?
Hi, I am trying to convert a hash to JSON using ActiveSupports built in .to_json. I am doing similar to the example below but are there certain strings that could go in place of ''bar'' or ''rez'' that will break the to_json method? I am using a very long string from rjs output in place of ''bar''. Perhaps .to_json is not ready yet? Thanks, Peter
2006 Mar 16
4
calling an actionview method from inside a model
Hi, I would like my model instance to produce it''s own list of options for a form select. This is from a product model that has_many variations def alts_for_select(current_id) the_map = variations.map{|v| [v.name, v.id]} options_for_select(the_map, current_id) end the model cannot see the options_for_select method I tried to use