Displaying 20 results from an estimated 200 matches similar to: "How to maintain Form State between Postback ?"
2007 Jun 15
2
Why does db:schema:dump change float to double ?
I have tables with double as their field''s datatype. When I ran
db:schema:dump, Rails changed all of these double to float.
I would like to know why, and if there is anyway I could preserve the
datatype.
Thanks a lot,
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2008 Jul 09
4
Auto Postback in Ruby On Rails
in some other language have a concept e.i "auto postback"
So, in Ruby on rails is there any such option e.i "auto postback"
or same as "auto postback"
basically what i want ot do is that i have 2 select box
One for "Industry" and other for "Chemical"
1st we show all the industry in "Industry" select box.
if we select any 1 industry
2005 Jan 29
4
problem with postback generator on 0.9.5
I''m trying to call the postback generator on rails 0.9.5. I''ve
installed the postback tarball into
gems/1.8/gems/rails-0.9.5/generators/postback as it seems like it is
supposed to be. At least, I installed the login generator the same way
and it works. But when I try to run it, I get this:
[carl@e236014 test]$ ruby script/generate postback
2006 Aug 14
1
Postback Action Problem
I was trying to use postbacks, but its not working.
def edit
@xxxx= xxxx.find_by_id(params[:id]) || xxxx.new
if request.post?
@xxxx.attributes = params[:xxxx]
redirect_to :list and return if @xxxx.save
end
end
I get the following error: SystemStackError in xxxxxController#edit
stack level too deep. The code of list is same as the code generated by the
scaffold
2005 Apr 25
1
Problems when using sweepers with postbacks
I''m using a cache sweeper class [1] to take care of some pretty complex
sweeping. However, there is a problem with the current implementation.
Namely, the sweeper gets called only when an action named in
cache_sweeper is called using GET. As many methods where sweeper would
be useful are using postback to send the form to the same action, this
causes the cache to get swept when
2006 Apr 14
0
Issue with Core Effect and AJAX Postback
Hi,
I''m displaying an Effect during an AJAX request,
unfortunately, during the postback, the Effect doesn''t display.
Is there a solution ?
Best Regards,
--
Jean-Philippe Encausse - R&D Jalios SA
Jp-vcK5r0oTKUrk1uMJSBkQmQ@public.gmane.org - http://www.encausse.com
ICQ: 109796741 - AOL: NextOne6666 - MSN: Nextone6666-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org
Mob: +336 82 12 56
2006 Jun 27
3
find_by_id vs. find in postback action
I''m playing around with the Postback action recipe listed in the recipes
book.
Here is the default code given:
def edit
@recipe = Recipe.find_by_id(params[:id]) || Recipe.new
if request.post?
@recipe.attributes = params[:recipe]
redirect_to :main_url and return if @recipe.save
end
end
Here is what my code sort of ended up looking like, altho i''ve ripped it
apart
2005 Mar 07
3
Tons of shiny new stuff
Ok despite this crazy flu which got me last week i was able to get
some coding done.
Here goes:
== Hieraki
Hieraki got plenty of improvements next to the rails 0.10 update. The
biggest new features are proper yaml, html and readme export. But
there are also plenty of new code improvements like the switch to my
favorite postback style for all controllers. Hieraki traditionally
serves as a demo
2008 Jul 09
4
probl;ems with Rails 2.1.0
i just install the Ruby on Rails 2.1.0.....
But i faced lots of problem....
is there any way to install Ruby On Rails 2.0.2
thanking you
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
2004 Aug 07
1
end_modal question
Really stupid question, but have you wrapped this all in an App class? If you don''t have a
wxApp subclass driving your applications then all sorts of badness would happen.
> I''m writing a custom little application for my boss''s high school
> football team to track there stats play by play.
>
> My problem is that when I start the application, it
2005 Mar 31
4
Transactions
I cant seem to find much information apart from the basics on
transactions in rails. I have 5 nested transactions, and am performing
the following basic operations:
@whatever1.transaction do
@whatever2.transaction do
....
@whatever2.something = "foo"
@whatever1.something = "bar"
@whatever1.save
@whatever2.save
.....
end
end
((( I had tried using
2006 Mar 23
1
Newbie: Saving file from a URL into DB
Hi all,
I''m just starting to learn RoR, and would like to ask a question.
I know that we can ''upload'' file from local machine and save it to a
database. Now, say I have a photo which I store in other website (for
example Flickr). This photo obviously has a URL pointing to it, e.g.
http://www.flickr.com/username/photoname.jpg.
How can I ''save'' this
2006 Jan 06
12
Auto refreshing a page based on select change
Hi all,
I have a select helper form on a web page which contains a list of dates. When
the user selects a date, one of the other forms on the page needs to be updated
based on the newly selected date.
Is there a way to catch this event in Rails? Are we talking Ajax here? Or is
there a simpler way?
Thanks,
Dan
2005 Apr 04
10
Encrypted ASP.Net type viewstate
Does rails have any builtin functionality similar to that of ASP.Net''s
encryptable ViewState? For those that don''t know what the ASP.Net viewstate
is, it is essentially just a hidden form field with the name __VIEWSTATE,
that stores a series of encoded(or encrypted) key/value pairs as it''s value.
When the form is submitted the viewstate value is decoded/decrypted on the
2008 Apr 17
4
Do I need to use sessions if I don't store anything in them?
Hi,
I got very small app that has user part and admin part. The problem is
that after a while the sessions table has ~150mb. I don''t really need
to store any user data in the session for the user part. I only need
it for the admin part.
Can I simply turn session off in controllers from the user part? Are
there any drawbacks of turning the session off?
Regards
2005 Dec 20
2
Designing a data-entry screen
Here''s what i''m trying to do:
Have 3 dropdowns up the top of a page, being: year, month, department,
and group. Also a button underneath that called refresh.
When you click refresh, it finds the 1 row of data from the database for
that year/month/dept/group and populates the fields into a set of
textboxes below.
Then you can edit what is in those textboxes, and click a
2010 Apr 09
0
HOW TO STOP POSTBACKS IN SUPERREWARDS
Hi
Am currently working with integrating superrewards where i came up with all
the steps included with superrewards but i didnt find the clear
documentation for stopping the postbacks from superrewards (i.e., to which
url the postback reply has to be send).Have anyone worked with superrewards?
Your help will be timely help thanks in advance..
--
View this message in context:
2007 Feb 01
12
RESTful Rails and other musings
Hi all,
I would first like to introduce myself to the Ruby on Rails (RoR)
community and to say that I hope to begin to build some relationships
with other RoR developers.
I''m a long time Java programmer (5+ years). Java was my first
experience with Object Oriented Programming (OOP). Before Java I
developed using many other languages including C, Pascal, Fortran,
BASIC, Visual Basic,
2005 Dec 19
8
Single Table Inheritance question
Hello,
I''m having a heck of a time getting Single Table Inheritance to work in my app.
I have the following models and have scaffolded out Person and Contact.
person.rb
class Person < ActiveRecord::Base
has_many :contacts
end
client.rb
class Client < Person
end
contact.rb
class Contact < ActiveRecord::Base
belongs_to :person
end
phone.rb
class Phone < Contact
end
In
2006 Jun 05
7
Building a UK based e-commerce store in rails
I have built a few sites with Rails, however I have been approached by a
company wanting an e-commerce / online shop built. I would love to build
one in rails with the knoweledge I now have. I have the agile book and
the pickaxe book they are my reference guide. However there is virtually
nothing on creating real world e-commerce sites in rails.
They will be selling to both businesses and the