[Rails] Re: ActiveRecord::Base.transaction - SystemStackError - stack level too deep:

2013-06-24 Thread Bob O
On Saturday, June 22, 2013 5:06:54 PM UTC-6, Bob O wrote: > > Im having an issue that seems to only happen when trying to use a > transaction. Ive used transactions many times in the past and Im at a loss > as to why im getting the stack level too deep problem. > > SystemStackE

[Rails] Re: ActiveRecord::Base.transaction - SystemStackError - stack level too deep:

2013-06-23 Thread Bob O
said to turn on the Rails.backtrace_cleaner.remove_silencers! so ive dont that. Is there something else i can do to that would be helpful? On Saturday, June 22, 2013 5:06:54 PM UTC-6, Bob O wrote: > > Im having an issue that seems to only happen when trying to use a > transaction. Ive used trans

[Rails] ActiveRecord::Base.transaction - SystemStackError - stack level too deep:

2013-06-22 Thread Bob O
Im having an issue that seems to only happen when trying to use a transaction. Ive used transactions many times in the past and Im at a loss as to why im getting the stack level too deep problem. SystemStackError - stack level too deep: actionpack (3.2.13) lib/action_dispatch/middleware/reload

[Rails] Re: Javascript call in Controller

2011-01-17 Thread Bob O
To clarify, Are you trying to get these values before THIS page is set? and if so what is creating these values? Would you not already have the data? If you are trying to get values via javascript for the next request could you not use javascript on the page to set params on what sets the search?

[Rails] Re: collection_select problem

2011-01-17 Thread Bob O
<%= u.collection_select( :member_status_id, @member_statuses, :id, :name , { }, { :class => "select", :name => "member_status_id" })%> I would try this. the first hash set is for options, the second is for HTML options. It looks like your passing args in the wrong place On Jan 13, 1:10 pm, warde

[Rails] passing a named_scope through a named_route

2009-09-22 Thread Bob O
I know i can pass a hash to a named_route, but how do i filter. example i have a bookings_controller and i want to filter the index lists based on which link is clicked. so something like <%= link_to "Current Bookings", bookings_path(@current_bookings) %> @current_bookings is set to Booking.cu

[Rails] Querying with Ruby date ranges

2009-09-08 Thread Bob O
hello, im stuck, im trying to do a find on a model with a date range where i only have 1 date. example something like def self.date_range(posted_date) date_range = find(:all, :conditions => { :received_date => posted_date..24.hours }) return date_range end basically i pass in the posted da

[Rails] Re: ActiveRecord find on legacy database having enum columns problem

2009-09-07 Thread Bob O
Excellent. Thank you for the link. That worked great! On Sep 7, 3:33 pm, Colin Law wrote: > 2009/9/7 Bob O : > > > > > > > hello, > > > Im interfacing a PHP app with my rails app and one of the tables im > > trying to do a find on has an enum column. So

[Rails] ActiveRecord find on legacy database having enum columns problem

2009-09-07 Thread Bob O
hello, Im interfacing a PHP app with my rails app and one of the tables im trying to do a find on has an enum column. So when i run the find, its adding an extra condition. This is my first time interfacing with a DB like this so im not quite sure how to remedy my problem This is my named_scope

[Rails] Re: Mysql and Snow leopard

2009-09-03 Thread Bob O
I had a lot of trouble Saturday as well with this.. I found you need to install the 64bit v. and set your paths accordingly. plus this was the link that helped get it running finally with my current applications http://void-design.net/2009/08/05/ruby-191-mysql-and-a-snow-leopard/ chekc it out.

[Rails] hidden_field with nested attributes problem

2009-07-30 Thread Bob O
ive been able to get nested attributes to work before. but only with a has_many Im having problems with hidden fields and nested attributes model - owner.rb belongs_to :ticket belongs_to :employee model - ticket.rb belongs_to :owner, :class => 'Owner' accepts_nested_attributes_for :owner, :al

[Rails] Re: Complete Beginner…

2009-07-15 Thread Bob O
I was a lot like you. I have a really strong BG in HTML CSS and Flash dev. With a little JS. I bought numerous tutorials and books. I have watched Ryan Bates Railscasts many times. Everyone learns differently, but from my experiences over the past year and a half i would say, get your head around

[Rails] Re: dynamic paths

2009-07-13 Thread Bob O
After diving into a few mentioned scenarios (thanks Frederick) the polymorphic_path and polymorphic_url is what i was looking for. thanks guys B On Jul 13, 7:40 am, Bob O wrote: > Let me see if i can be more clear, and i will try some of the > suggested solutions > > Im trying

[Rails] Re: dynamic paths

2009-07-13 Thread Bob O
f things are more > complicated, you may need of the other solutions here. Or, you could > call a named route like this: > > <%= link_to 'show', send("#{some expression that gives you the name} > _path", object) %> > > but the previous example seems

[Rails] Re: dynamic paths

2009-07-10 Thread Bob O
above wont work correctly, right? if this doesnt make sense i can post some code On Jul 10, 4:23 pm, "Älphä Blüë" wrote: > Bob O wrote: > > does anyone know how i can make dynamic paths? > > > say i had a partial for maybe an index list, but i want the link to > >

[Rails] dynamic paths

2009-07-10 Thread Bob O
does anyone know how i can make dynamic paths? say i had a partial for maybe an index list, but i want the link to the show page to be dynamic so im able to use the partial for may objects. <%= link_to "show", "#{object}" + _path(object) %> something along those lines. --~--~-~--~~-

[Rails] Nested Forms adding [-]

2009-06-30 Thread Bob O
Im stumped. I followed Ryan Bates screencast 73 and had this working the other day for an assets model. Today im trying to implement the same thing for a case_study model that belongs_to :services. MODEL: CaseStudy belongs_to :services MODEL: Services has_many :case_studies, :dependent => :destr

[Rails] admin link in application helper

2009-06-23 Thread Bob O
hello, Im trying to create a helper method for my admin links. in quite a few views i have the code <% if current_user %> <%= link_to "Edit", edit_model_path(model) %> <%= link_to "New", new_model_path %> <%= link_to "Delete", model, :confirm => "Your a Noob", :method => :delete %> <% end %> t

[Rails] Re: IE6 CSS and Rails Routes

2009-06-01 Thread Bob O
so i found out it was a pathing problem when i went to a url like / controller/action, it caused my stylesheet path to break. if i add a ../stylesheets/ie6stinks.css then it works for those pages that have the controller in the url. So now i have to conditionals that basically point to the same

[Rails] Re: Rails making it tougher for newbies?

2009-03-22 Thread Bob O
This is another really good first rails book. it covers some really core concepts. This will help the other "deeper" books easier to get into. http://www.headfirstlabs.com/books/hfrails/ I have spent the last year learing and developing in Rails and Zend (php) and i wish i had this book a year a

[Rails] Re: Bar Chart in Rails

2008-12-06 Thread Bob O
I recently used FusionCharts the free version. They have great documentation and it is pretty easy to connect them with a .rxml Once you get the hang of using them, they have many different types.. http://www.fusioncharts.com/free/ On Dec 5, 1:19 am, CSK Vasanth <[EMAIL PROTECTED]> wrote: > Hi

[Rails] Re: What is the preferred "lightbox" plugin?

2008-11-19 Thread Bob O
Ive been using this on my latest project and found it to be very stable, easy to style, easy to use.. http://famspam.com/facebox Good Luck On Nov 18, 2:04 pm, Philip Hallstrom <[EMAIL PROTECTED]> wrote: > Hi all - > > I need to do an overlay with something that supports ajax/remote   > html.  T

[Rails] REST with 1.2.3

2008-11-13 Thread Bob O
Hello all, First let me say im a n00b. Im coming into the OOP world from the design world. So far so good. With great resources like this, youre all making my life less painfull. Question - The current project im involved in is in 1.2.3 (not by my choice) Basically i have a form partial that i