I have done my first MVP in rails, an invoicing application,https://github.com/pietrop/simpleinvoice
So at the moment when I create an invoice, (I use the active record find or create method for defining the client on creation of the invoice) it pulls up the client details, the bank details of the user, and the user details as pre-populated editable fields, the user only needs to add the services and the invoice is done.
Where is the problem?
if the user creates a second invoice and edits any of those pre-populated details(client, bank, and user details) it changes on all of the invoices. and in this context it creates inaccurate unreliable historic records.
What would you recommend is the best way to sort this out in Rails?
Best
Pietro
Group: http://groups.google.com/group/rubyonrails-talk/topics
- How to communicate a web app with destkop app? [5 Updates]
- Rails 4 deprecation of in-place edit methods for collection associations [2 Updates]
- [JOBS] RoR consulting roles in New York City, massive commercial web development. [1 Update]
- What is the best way to convert a currency string 'USD' to locale :en-US? [4 Updates]
- Datepicker not showing proper field [2 Updates]
- Retrieve duration (in string format) from database and convert to Ruby syntax for calculation [1 Update]
- redirect on browser success, but redirect on functional test is error [1 Update]
- Introducing Web Console 1.0 [Google Summer of Code 2013 Project] [1 Update]
Hi everyone,
I need that my web app talk with a dektop application.
User case: a user click a button on the page, and this button send a
command to the desktop app and wait for the answer from ...more
Does is it an alternative for you?
https://developer.chrome.com/apps/usb.html
https://wiki.mozilla.org/WebAPI/WebUSB
Without the desktop layer, in this case.
--
Fernando Almeida ...more
> Hi everyone,
> I need that my web app talk with a dektop application.
Which computer is the web application running on (not the browser, the
rails server)?
Colin
...more
@Colin the rails server is running in a VPS with nginx and unicorn.
@Fernando, thank you very much, but it is not alternative for this project,
i will study the chrome devs API for a future and ...more
Ricardo do Valle wrote in post #1122365:
> I am looking for a way to create sockets and controls (state machine)
> from
> a rails app or another way to do that.
You do realize that what you're ...more
The justification for this change seems preposterous. Why would anyone
think that, in the former example, the database has changed? The method
called there is named "select!".
...more
Thank you Matt!!
Now I see my own confusion - I was convinced that these two snippets are
identical in Rails 3 (Well, they are - JUST in MY case)
When they do the same thing - when the ...more
This is a consulting role, 3-6 month extendable engagements, W2 only
through Core Search Group.
Think you can design/build for high performance RoR/Python web
infrastructure that serves tens of ...more
What is the best way to convert a currency string 'USD' to locale :en-US?
Right now trying to make it flexible to show the money and symbol correctly
based on the currency string (like 'USD' or ...more
You could make a helper that would extract this value from the user and translate the display string. If you set up a hash like {'USD' => :en-US, 'GBP' => :en-BG, ...} then there would be one place to ...more
Hang on do you mean to convert USD 1000 into AUD 1000? Surely you would
need to do a currency conversion because USD 1000 is AUD 1064. This would
seem to have nothing to do with locales at all.
...more
I just saw a gem on RubyFlow last week that handles currency conversions using Google as a data source. If that's what you're after, forget what I said and use that.
Walter
On Sep 24, 2013, at ...more
I'm using Rails version 3.2 and Ruby 1.9.3
I'm trying to make within a form_tag a datepicker field. In my GemFile I
have added gem 'jquery-rails' and gem 'jquery_datepicker'. In the rails ...more
I think you have to add script for datepicker
Just like below
$(function() {
$(".date_picker").datepicker({
dateFormat : 'd M, yy',
minDate : 0,
maxDate : +90
}); ...more
Thanks for your help everyone.
I ended up using Chronic Duration gem.
https://github.com/hpoydar/chronic_duration
On Sunday, September 22, 2013 3:58:58 PM UTC+8, Colin Law wrote:
...more
carts.yml does not create the cart with id=1 that LineItem.find(1) refers
to.
...more
Please, do so! Would appreciate any feedback :)
On Saturday, September 21, 2013 1:52:06 AM UTC+3, tamouse wrote:
...more
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/20cf303b3c0119aefc04e7307a21%40google.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment