search for: codosaur

Displaying 20 results from an estimated 38 matches for "codosaur".

2012 Sep 10
0
Tips: workarounds to do free full-text search on Heroku :-)
...to put it on Heroku. However, I had forgotten that Heroku doesn''t allow any Solr for free! So I ripped it out and looked for alternatives, winding up with pg_search. I ran up against some problems, but figured out some workarounds, and wrote them up in a two-part blog post: http://www.codosaur.us/2012/09/free-full-text-search-with-heroku-part-1.html and http://www.codosaur.us/2012/09/free-full-text-search-with-heroku-part-2.html Share And Enjoy! Dave -- Dave Aronson, Available Secret-Cleared Ruby/Rails Freelancer (VA/DC/Remote); see www.DaveAronson.com, www.Codosaur.us, and www.Dare...
2012 Feb 03
10
ruby on rails 3 tutorial book chapter9 Signin Failure
Hi I have problem trying to pass the signin failure test. This is the test code of the sessions_controller.rb def create user = User.authenticate(params[:session][:email], params[:session][:password]) if user.nil? flash.now[:error] = "Invalid email/password combination." @title = "Sign in" render
2011 Oct 05
3
Rails 3 Select_tag in javascript give missing ; error
When I write var x = "<%= select_tag(:activity_group, options_for_select(activity_grp),{:include_blank => ''Create New Group'', :style => ''width: 100px''}) %>"; where <% activity_grp = @activity_group.map { |ag| [ag.name, ag.id] } %> However, I get error (missing ; before statement) in Firebug because var x = "<select
2012 Jan 27
4
Redirecting to create new page with input
Rails 3.1.3 I believe this is a very very fundamental question, but since I am new to Rails, it''s more productive to ask someone to point out what I need to do. Say, I have a search method that generates a list of youtube videos. I have completed this part. And also, I have set up a database, Video, whose fields are video_title and URL. I need to place a button to each of these video
2013 Oct 04
4
Best Book 4 RoR
Hello, Is there a great book for Ror. I am looking for a book with a step by step approch and by PROJECTS!! RoR needs to be ''practiced'', and i didn''t find those WORKING PROJECTS. Am i dreaming or is this paper exists. All the books on amazon are not amazING. They talks only about theory. Theory is fine, i mean this is RoR. But then... Thanks for those who, first,
2011 Nov 04
5
Beating the Top-Posting Dead Horse
...osting, in the sense of leaving the entire prior message intact, is sensible. It''s just LAZY. -Dave -- LOOKING FOR WORK! What: Ruby (on/off Rails), Python, other modern languages. Where: Northern Virginia, Washington DC (near Orange Line), and remote work. See: davearonson.com (main) * codosaur.us (code) * dare2xl.com (excellence). Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (Aronson) -- 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-/JYPxA39Uh5T...
2010 Aug 12
10
Scaffolding working...kinda
Hello all. I''ve been working through some online tutorials, learning ROR and have a question on scaffolding. Through the command promt i''ve ran the command: $ script/generate scaffold Albums This created the controllers, helpers, models, and views. I have a database table titled "albums" and have two records saved within The problem is that the scaffold command did
2011 Nov 26
0
spreadsheet-like presentation gem?
...as well isolate it, make it a gem, and publish it. Do you think it would be useful to anybody? Thanks, Dave -- LOOKING FOR WORK! What: Ruby (on/off Rails), Python, other modern languages. Where: Northern Virginia, Washington DC (near Orange Line), and remote work. See: davearonson.com (main) * codosaur.us (code) * dare2xl.com (excellence). Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (Aronson) -- 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-/JYPxA39Uh5T...
2012 Feb 11
0
Spam spam spam spam....
...f our bandwidth, cluttering our list of messages, with a message full of sound and fury, signifying nothing. Engage brain before fingers, and TRIM YOUR @#$%^* QUOTES! -Dave -- Dave Aronson:  Available Cleared Ruby on Rails Freelancer (NoVa/DC/Remote) -- see www.DaveAronson.com, and blogs at www.Codosaur.us, www.Dare2XL.com, www.RecruitingRants.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group,...
2012 Mar 01
1
Testing selector order in RSpec
Could someone point me to a reference that explains how I would test the order of elements on an HTML page? For example, in RSpec I would like to verify that the content of one <p> element appears before the content of another. response.should have_selector("p", :content => "Should appear first") response.should have_selector("p", :content =>
2012 Apr 11
1
multi model form
hi, can someone advice how can I create a form with fileds from different models. also how to get the different models (objects) saved. thank you dani -- 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
2012 Apr 18
1
Re: validates_uniqueness_of question
Hi All, I am trying write a validation rule where I need to ensure that when a certain value is updated or created in a particular columns, a number of other columns columns are unique and that another column does not contain a certain value. I have been able to use the validates_uniqueness_of :column_a (to be updated or inserted) with , :scope => [ :column_b , :column_c , :column_d ]
2011 Nov 29
2
image with Content-Type: text/html;
i have images such as this http://www.cairo360.com/resource.servlet?path=event/6178/event_standard_6178_20112111_542213373.jpeg its Content-Type: text/html; "carrierwave" dosent recognize it as image is there is any way to fix that ? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2011 Nov 26
1
ActionController::RoutingError (No route matches [GET] "/image.jpg"):
I am using rails 3.1.3. Inside config/ application -> config.assets.enabled = true Inside development.rb -> config.assets.compress = false Inside production.rb -> config.serve_static_assets = false; config.assets.compile = false I have images placed in assets/images. If i do localhost:3000/assets/ image I get the image in the browser, but unfortunately, on the browser i am
2010 Aug 18
2
auth logic - password confirmation
Hi, newbie here. :) i have this form on a test rails app: <% form_for @user do |f| %> <%= f.error_messages %> <p> <%= f.label :username %><br /> <%= f.text_field :username %> </p> <p> <%= f.label :email %><br /> <%= f.text_field :email %> </p> <p> <%= f.label :password %><br
2012 Aug 16
1
How to create subpages.
What I am trying to do is create subpages within the main page. So if the top navigation is - Home www.example.com/ - About www.example.com/about - Contact www.example.com/contact - Support www.example.com/support I would want a sub navigation under the pages like so; - Home www.example.com/ - About www.example.com/about ----- History www.example.com/about/history ----- Locations
2012 Feb 07
2
how to assign edit/remove privileges for only own details and not on others?
Hello,I am quite new on rails. Currently making CRUD apps in rails 3.0 in windows. I''ve used devise [1.1.rc0] for authentication.In those apps any logged in user can change other user''s details. How can I design the app, so that any logged in user can edit/remove his details only if he wishes to do so and can only view others'' records. After logging in he should be
2011 Nov 10
2
Rails nested Routing
Hi there! I experienced an issue with routing. Basically, I''m trying to follow step-by-step the Rails'' official guides process for what concerns the nested routing. So, I have Newspapers that has_many :ads , and :ads belongs to :newspaper . What I did was simply trying to obtain an URL like this: http://localhost/newspapers/1/ads/1 but when I set routes.rb in this way:
2012 Mar 11
1
notifications (or flash messages) in an api application
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello! As a noob in rails, i am having a problem on how to find a decent and straightforward notifications system for my application. Being a Api like application (talking with the client is made using JSON / later on XML as well), i have a problem finding a good solution to feed my needs. I have tried to use the rails validators, but then i have
2010 Aug 13
10
:limit text mysql
I have a rails 3.rc app that I''m developing. I have a text entry in one my models that can sometimes be quite big. I tried setting :limit => 4294967296 on the text column in my migration file but this doesn''t seem to have any effect. The column is till created as a TEXT column rather than MEDIUMTEXT or LONGTEXT. Does anyone have any idea why this might be happening? Is there