[Rails] Namespaces, dynamic links and routing

2015-11-06 Thread Jason O
Hello all! I am new to all of this and I am trying to accomplish a couple things, I am hoping that someone will be able to assist me… First - I am trying to set up a namespace within a dynamic link. I have created an admin namespace and I need to following link to go to ../admin/people/xxx

[Rails] Database connections, I cannot decide which way I should go!

2015-03-16 Thread Jason O
Hello all! And thanks for your help and input. I am in the process of building my first project for the company I work for and I am stumped as how to tackle my database information problem. What I am dealing with is a database with a list of users and a separate table with a list of articles

[Rails] Re: [Newbie] Filtering Index page

2015-02-10 Thread Jason O
Thank you for the welcome and the response! What have given me works great! With the exception of the {:class = button} which throws up a wrong number of arguments (4 for 0..3) error. I am looking into this to see if I can find out more. I tried this also with the button_to which makes the

[Rails] [Newbie] Filtering Index page

2015-02-09 Thread Jason O
Hello all and thank you for your time and help. I am working on my first big project and one of the requests that I have is to host a directory list people, with the option to click from an array of buttons with the different position titles. Button examples being: Staff, Faculty, Grad

[Rails] Re: Unblock the websites you love!

2013-11-14 Thread Dina O.
I found a better VPN solution to unblock websites https://www.waselpro.com/en/ I am using this VPN provider for a couple of months with unlimited bandwidth and No restrictions over use. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

[Rails] Re: Unblock the websites you love!

2013-11-14 Thread Dina O.
The best VPN experience I had in a very long time https://www.waselpro.com/en/ . I managed to hide my IP adress and unblock websites directly with just one click application. It is not easy to find a real good VPN provider. -- Posted via http://www.ruby-forum.com/. -- You received this

[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. SystemStackError - stack level too deep

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

2013-06-23 Thread Bob O
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 transactions many times in the past

[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)

[Rails] How to setup a template-engine in ruby rails

2012-11-07 Thread Sreekesh O S
I want to customize rails scaffolding. For that I want to set up a custom template engine. Can anyone guide me to set a custom template-engine. -- 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

[Rails] Re: customizing scaffold templates

2012-10-30 Thread Sreekesh O.
Can you please share your scaffold generator template modifications with me? im tryng to do that but getting lots of error -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group,

[Rails] Error while customizing view template in Ruby on Rails

2012-10-30 Thread Sreekesh O.
I was trying to create custom view pages in ROR as seen in http://blog.hulihanapplications.com/browse/view/55-ruby-on-rails-multiple-model-form-generator then i got some errors ** (erb):6:in `template': compile error (SyntaxError) (erb):3: syntax

[Rails] Re: Error while customizing view template in Ruby on Rails

2012-10-30 Thread Sreekesh O.
The controller code for edit view: ** def edit @%= file_name % = %= class_name %.find(params[:id]) end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: Error while customizing view template in Ruby on Rails

2012-10-30 Thread Sreekesh O.
These are files in rails installation folder the scaffold-generator template. These are defined default by rails path of files in linux: usr/lib/ruby/gems/1.8/gems/rails 2.3.5/lib/rails-generator/generator/components/scaffold/template -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: Re: Error while customizing view template in Ruby on Rails

2012-10-30 Thread Sreekesh O.
Jim ruther Nill wrote in post #1081968: On Tue, Oct 30, 2012 at 7:01 PM, KUL KING kulking...@gmail.com wrote: @%= file_name % = %= class_name %.find(params[:id]) end you are using erb code inside the controller. i don't get why you want to do this or if it's even possible to do it

[Rails] Error while customizing view template in Ruby on Rails

2012-10-30 Thread Sreekesh O S
I was trying to create custom view pages in ROR as seen inhttp://blog.hulihanapplications.com/browse/view/55... http://blog.hulihanapplications.com/browse/view/55-ruby-on-rails-multiple-model-form-generator then i got some errors ** (erb):6:in

[Rails] Re: can't dump File error

2012-10-18 Thread Taiwo O.
Michael Kohout wrote in post #693402: hmm...I was getting this behavior from regular ol attachment_fu. To solve it, I just rolled my own file code. But thanks for the update! Pls can you describe how you got around this issue? Thanks. Taiwo -- Posted via http://www.ruby-forum.com/. --

[Rails] Re: Re: a hands-on tutoring needed

2012-07-08 Thread sehrguey o.
this (inline) or better you would use Prototype or jQuery to write an unobtrusive handler. O weh, dear sirs, If I could I would but before I should know the way to. Presently I consider your enlightened talk with awe like some heaven dwellers' parlance incomprehensible for mere mortals. OK. I asked

[Rails] Re: Re: Re: a hands-on tutoring needed

2012-07-08 Thread sehrguey o.
Colin Law wrote in post #1067862: I would start by working right through some good Ruby tutorials (to understand the language better) and also through some good Rails tutorials (railstutorial.org is good and is free to use online) to understand the Rails magic. thank you Colin, you are

[Rails] Re: a hands-on tutoring needed

2012-07-06 Thread sehrguey o.
happy moments are too short... the search form worked and still works but it has a major flaw - when the text_field_tag is left blank then all the db raws pop up on hitting submit button. How to prevent it? I tried to substitute 'if (search.present?)' for just 'if search' in disk.rb (the

[Rails] Re: a hands-on tutoring needed

2012-07-05 Thread sehrguey o.
thank you, Walter, it worked after I had corrected the shameful typo and replaced 'name' with 'title'further along the line. I feel embarrassed and obliged or, maybe, vice verse. gratefully yours` sehrguey -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] Re: a hands-on tutoring needed

2012-07-04 Thread sehrguey o.
Hi Walter, there is form_tag in the index view` - br / div %= form_tag disks_path, :method = 'get' do % p %= text_field_tag :search, params[:search] % %= submit_tag Search, :name = nil % /p % end % /div %= link_to 'New Disk', new_disk_path % -- but when I

[Rails] Re: a hands-on tutoring needed

2012-07-03 Thread sehrguey o.
Walter, here is the contents of my disk.rb --- class Disk ActiveRecord::Base attr_accessible :director, :language, :notes, :starring, :title, :volume_name, :wrapper def self.search(search) if search find(:all, :condition=['name LIKE ?', %#{search}%]) else

[Rails] Re: a hands-on tutoring needed

2012-07-03 Thread sehrguey o.
dear Gregory, I watched both episodes you mentioned, they did not work for me, I couldn't figure out where the views come into play, which model stores the searched items and what is in the controller of that invisible model. yours` sehrguey -- Posted via http://www.ruby-forum.com/. --

[Rails] Re: a hands-on tutoring needed

2012-07-02 Thread sehrguey o.
Hello Bill, sometime ago I hacked the database structure from Kevin Yank's tutorial “Build Your Own Database Driven Website Using PHP MySQL” to use it for a database at my site and it works OK storing and delivering a hundred plus of records in the database I needed. However I haven't

[Rails] Re: a hands-on tutoring needed

2012-07-02 Thread sehrguey o.
dear Walter, thank you for your kind attention and readiness to help. You talked about my controller and proposed an awesomely nice line: “ @foos = Foo.where([bar LIKE '%?%',params[:q]])” Unfortunately, it is not enough to get me started because I can't imagine where on earth to stick it

[Rails] a hands-on tutoring needed

2012-07-01 Thread sehrguey o.
dear each, and all and others, being a completeest newbie to RoR and having got dumb by a month or so of googling how to add search faculty to a web app, I ask you for help. All I got is a database of 200 records so there is no need for sphinxes, sunspots, elasticsearches, searchlogics, ferrets

[Rails] Re: Re: Gem install bundler works, gem bundle doesn't?

2012-01-31 Thread Martin O.
I also have this problem but I have root access. Are there any options? -- Posted via http://www.ruby-forum.com/. -- 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@googlegroups.com. To

[Rails] groupon like website designed in rails with some added features .

2011-12-03 Thread ryan o donovan
looking for some one to do a groupon like website -- 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@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: cache-money and rails 3

2011-10-10 Thread Orslumen O.
Last week I launched a new write-through-cache gem for Rails 3, see https://github.com/orslumen/record-cache. The reason I built it, is because we were using cache money and recently migrated to Rails 3. So chances are, it will also serve you well. -- Posted via http://www.ruby-forum.com/. --

[Rails] Re: cache-money Rails3?

2011-09-27 Thread Orslumen O.
Today I launched a new write-through-cache gem for Rails 3, see https://github.com/orslumen/record-cache. It's works great in Rails 3.0.x and will support Rails 3.1.x in the near future. The reason I built it, is because we were using cache money and recently migrated to Rails 3. So chances

[Rails] Rails 3: How to identify after_commit action? (create/update/destroy)

2011-08-30 Thread Elad O
I have an observer and I register an `after_commit` callback. How can I tell weather it was fired after create or update? I can tell an item was destroyed by asking `item.destroyed?`. I was going to solve it by adding `after_create`/`after_update` and do something like `@action = :create` inside

Re: [Rails] render :json question

2011-03-07 Thread Eduardo de O. Hernandes
try ActiveRecord::Base.include_root_in_json = false ok. On Mon, Mar 7, 2011 at 4:22 PM, elliottg x...@simplecircle.net wrote: I am calling render :json = @buildings from a  Buildings controller. It's returning [{building:{value:114 3rd Ave New York}},{building: {value:114 1st Pl

Re: [Rails] Re: Rails 3 and Sproutcore

2011-02-26 Thread Eduardo de O. Hernandes
no luck with it. :-(.. On Feb 25, 10:06 am, Eduardo de O. Hernandes eduardod...@gmail.com wrote: Hi people, Anyone is using Rails 3 (backend) with Sproucore (front-end) ? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Rails 3 and Sproutcore

2011-02-25 Thread Eduardo de O. Hernandes
Hi people, Anyone is using Rails 3 (backend) with Sproucore (front-end) ? -- 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@googlegroups.com. To unsubscribe from this group, send email

[Rails] Re: Sharing A Layout Among Partials

2011-02-20 Thread Jack O.
Typically you'd have 1 partial for the review: views/reviews/_review. In my case the content varies slightly based on the context/review type. I don't think it makes sense to have N partials per context and review type when 85% of the layout is the same. -- Posted via

[Rails] Sharing A Layout Among Partials

2011-02-19 Thread Jack O.
Using Rails 2.3.8. My site displays reviews. Depending on what context the review is shown in the review's heading and thumbnail change. I'm trying to share a layout across several review partials. Each partial would define a few snippets of HTML to be used in the layout. Is this possible? I've

[Rails] Re: How to communicate with salesforce

2011-01-24 Thread Dai O.
Kunjan, when you try to connect to salesforce with the, activesalesforce, you should set infos in config/database.yml like below. development: adapter: activesalesforce username: ...@yyy.com password: You might see some errors while trying to login. In That case, I suggest

[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, wardenik

[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] Rackspace is hiring Ruby on Rails Developers in Austin, TX and San Antonio, TX

2010-08-17 Thread O
Hello, Here at Rackspace we embrace open source development and are currently engaged in a number of projects using Ruby on Rails. We need more developers and are currently growing our teams in San Antonio and Austin TX. If you are interested In discussing development opportunities please take

Re: [Rails] Generating .mo with Rails 2.1.0

2010-08-03 Thread Bráulio B O Bhavamitra
Already fixed... just removed the unecessary option -rgettext/rails from command line 2010/8/2 Bráulio Bhavamitra brauli...@gmail.com Hello all, I'm a newbie to Ruby/Rails world, and also to the application I'm trying to use: Noosfero. The thing is, i'm trying to run 'rake makemo' with no

[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

[Rails] Querying with Ruby date ranges

2009-09-09 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

[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: 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 clan...@googlemail.com wrote: 2009/9/7 Bob O sngndn...@gmail.com: 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

[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

[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,

[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

[Rails] Re: dynamic paths

2009-07-13 Thread Bob O
, 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 much cleaner. --Matt Jones On Jul 10, 6:17 pm, Bob O bhan...@hcinsight.com wrote: does

[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 bhan...@hcinsight.com wrote: Let me see if i can be more clear, and i will try some of the suggested solutions Im

[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] Re: dynamic paths

2009-07-10 Thread Bob O
the above wont work correctly, right? if this doesnt make sense i can post some code On Jul 10, 4:23 pm, Älphä Blüë rails-mailing-l...@andreas-s.net 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 the show

[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

[Rails] Re: how to intregrate authorised.net with rails application

2009-03-13 Thread Nils o. Janus
Anshali Dhande wrote: Hi All, Please help me out for this issue Issue is: how to integrate authorised.net with rails application: thanks Check to works of Cody Fauser for this at http://www.activemerchant.org/ NoJ -- Posted via http://www.ruby-forum.com/.

[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.  

[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