Re: [Rails] git push not working

2013-10-21 Thread Jordan Miller
follow the tutorial on github first for how to create a repo and push to it from your computer for the first time. jordan On Oct 21, 2013, at 1:42 PM, Natmanu natm...@gmail.com wrote: https://lh4.googleusercontent.com/-IA0TutFw54A/UmVnJwi7CHI/Azg/fEZFf_kHsug/s1600/git.gif Hi again,

Re: [Rails] Re: How to make my RESTApps work faster

2012-02-02 Thread Jordan Miller
why are you running WEBrick as your production webserver? it's not designed for that. get an apache or Nginx install post haste! jordan On Feb 2, 2012, at 11:14 AM, bacrossland wrote: On Feb 2, 3:32 am, Neethu Satheesh li...@ruby-forum.com wrote: My team also faced the slowness of app

Re: [Rails] Re: Rails doesn't scale?

2012-01-25 Thread Jordan Miller
http://railslab.newrelic.com/scaling-rails lots of technical details in these webcasts... jordan On Jan 25, 2012, at 12:22 AM, Robert Walker wrote: Rodrigo Ruiz wrote in post #1042405: Does Rails scales for something like an e-commerce that makes 5000 sells each day? An e-commerce like

Re: [Rails] How would you do this in ajax in rails 3

2012-01-23 Thread Jordan Miller
rule of thumb is get it working first without ajax... then add remote true to the button or link, then add your ajax... jordan On Jan 23, 2012, at 8:29 PM, gerbdla wrote: I have a rails 3.1 app and I am curious how you would do something. I have a link_to remote option true button

Re: [Rails] Multiple Before Filters

2012-01-19 Thread Jordan Miller
what version of rails are you using? on 3.1.3 all three of these fire fine for me in my application controller... before_filter :must_login before_filter :must_be_member before_filter :must_be_admin jordan On Jan 19, 2012, at 1:23 PM, Dan King wrote: I've added two before filters

Re: [Rails] Need some advice on how to start a rails app

2012-01-17 Thread Jordan Miller
my rudimentary understanding... you need these all to be has_many :through relationships and you need only one person model and new relationship models to account for privileges. user has_many organizations, through memberships organization has_many users, through memberships membership

Re: [Rails] multiple submits with ajax submit

2012-01-16 Thread Jordan Miller
are you not using remote: true ?? Then you can also put a disable_with: which only allows the button to be pressed once. Rails 3.1.3 Here is a line from my view that was made with the agile web development book: %= button_to 'Add to Order', line_items_path(item_id: item), remote: true,

Re: [Rails] Is their any plugin/gem available to improve performance

2012-01-16 Thread Jordan Miller
without knowing absolutely anything about your code, since you haven't told us much, it sounds like you should either refactor your code to make it efficient, or... easier solution is to just get a faster server. rails 3 does lazy loading so by definition that will cut down dramatically on your

Re: [Rails] Paperclip

2012-01-13 Thread Jordan Miller
did you add the definitions and functions to your model file? jordan On Jan 13, 2012, at 9:27 AM, Walter Lee Davis wa...@wdstudio.com wrote: On Jan 13, 2012, at 4:44 AM, Karthikeyan wrote: Hello people, I installed paperclip gem with these following lines in gem file gem 'rmagick'

[Rails] Advanced has_many and belongs_to model joins ?

2012-01-08 Thread Jordan Miller
Hi, I'm having major trouble with a somewhat self-referencing has_many and belongs_to set of models. item.manufacturer correctly returns an object of type Vendor. However, item.manufacturer.name raises an exception even though the name value is set correctly. I've been debugging and googling