[Rails] Re: Rails 3.1.0 - Asset pipeline

2011-12-31 Thread K.M.
Found the answer: provided there is an 'assets' subdirectory in the 'myapp/public' directory, it will work and it does work :) Case closed :) Happy new year :) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send

[Rails] Rails 3.1.0 - Asset pipeline

2011-12-31 Thread K.M.
Hi, all :) Happy new year :) I referred to http://edgeguides.rubyonrails.org/asset_pipeline.html for rails 3.1.0, 1) it does say that assets related to the application (ie. need preprocessing) can live in the myapp/app/assets directory 2) it does say that files which need no preprocessing can st

[Rails] Re: 'require_tree .' does not seem to be including the available *.js files as expected. Why?

2011-12-31 Thread K.M.
I looked at 'Upgrading from Old Versions of Rails' in http://edgeguides.rubyonrails.org/asset_pipeline.html and that has now fixed the problem whereby files in assets/ can now be accessed. I followed the changes recommended and they worked. Nevertheless, I could not see my custom javascript files

[Rails] Re: 'require_tree .' does not seem to be including the available *.js files as expected. Why?

2011-12-31 Thread K.M.
I created a new rails app in my /tmp directory. I noticed that the Gemfile had something new relating to the asset group. The app I am working on was created with rails 3.0.x and hence, I made a change to my Gemfile to use rails 3.1.0 and ran "bundle install" to get rails 3.1.0 in. -- This

[Rails] Re: 'require_tree .' does not seem to be including the available *.js files as expected. Why?

2011-12-31 Thread K.M.
I had also clicked on 'application.js' in the line, '' in the html file. It looks like the files in app/assets cannot be accessed. Here's what the source looks like. Observe the message, 'No route matches [GET] "/javascripts/application.js"<' -- Extract of source starts

[Rails] 'require_tree .' does not seem to be including the available *.js files as expected. Why?

2011-12-31 Thread K.M.
Hi, all, Happy new year :) Referring to http://guides.rubyonrails.org/asset_pipeline.html, it seems that 'require_tree .' in myapp/app/assets/javascripts/ application.js will include all *.js files in the myapp/app/assets/ javascripts/. I have a few other *.js files in this directory : parts.

[Rails] Re: how to pass form values within an ajax call?

2011-12-31 Thread K.M.
1. The following javascript is being defined in myapp/public/ javascripts/application.js jQuery(function($) { // when the #search field changes $("#category").change(function() { // make a POST call and replace the content $.post(<%= category_sub_categories_path %>, function(data) {

Re: Re[6]: [Rails] bundle --deployment & --no-deployment

2011-12-31 Thread Hassan Schroeder
On Sat, Dec 31, 2011 at 2:18 PM, Ralph Shnelvar wrote: > jw_player needs to have videos somewhere in public. > > Can a link to cloud storage be placed there?  I am a complete noobie when it > comes to cloud stuff and heroku. This has nothing to do with Heroku specifically. I've never used fw_p

[Rails] an advice for menu navigation.

2011-12-31 Thread Mauro
I'm using simple-navigation but I want try other solutions, for example with jquery. What do you use for navigation menus with one or more levels? -- 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 rubyon

[Rails] Oh btw...

2011-12-31 Thread oS
HAPPY NEW YEAR from my I&iPhone -- 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 rubyonrails-talk+unsubscr...@googlegro

[Rails] Which of you...

2011-12-31 Thread Osandi Sekou
Have time for a project? from my I&iPhone -- 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 rubyonrails-talk+unsubscr...

Re[6]: [Rails] bundle --deployment & --no-deployment

2011-12-31 Thread Ralph Shnelvar
Hassan, Saturday, December 31, 2011, 11:27:29 AM, you wrote: HS> On Sat, Dec 31, 2011 at 10:18 AM, Ralph Shnelvar wrote: >> Question:  Does that mean I can't add more gems to the gemfile when I do the >> next upload? HS> No, each deployment reads the Gemfile and loads what it needs. >> If I

[Rails] Re: Invalid gemspec.#

2011-12-31 Thread Bash Coder
After doing the pristine rebuild, I still received one persistent gemspec error from dm-serializer. The problem was that gems couldn't find the gem if I tried to rebuild it. So I did this and it fixed it the last remaining error: sudo gem install dm-serializer - Bash -- Posted via http://www.

Re: Re[4]: [Rails] bundle --deployment & --no-deployment

2011-12-31 Thread Hassan Schroeder
On Sat, Dec 31, 2011 at 10:18 AM, Ralph Shnelvar wrote: > Question:  Does that mean I can't add more gems to the gemfile when I do the > next upload? No, each deployment reads the Gemfile and loads what it needs. > If I need to fix one .rb file (or whatever), do I have to upload the entire >

Re[4]: [Rails] bundle --deployment & --no-deployment

2011-12-31 Thread Ralph Shnelvar
Hassan, >> Am I even able to do a bundle whatever on the server they provide? HS> You don't need to; Heroku uses your Gemfile to make the required HS> gems available to the app at deployment. Dear God! One sentence and "everything" snaps into focus. Thank you! Question: Does that mean I can

[Rails] how to setting additional attributes of a join model?

2011-12-31 Thread Mauro
I've spent a lot of time trying to create a new model and, at the same time, setting an attribute of the join model. I have: Company has_many :managements has_many :managers, :through => :managements Manager has_many :managements has_many :companies, :through => :managements Then I try to create

Re[2]: [Rails] Conflicting libraries: jQuery.js & accordion.js

2011-12-31 Thread Ralph Shnelvar
Friday, December 30, 2011, 7:09:08 PM, you wrote: CW> On Fri, 2011-12-30 at 12:21 -0700, Ralph Shnelvar wrote: >> I have a library conflict between jQuery.js & accordion.js >> >> The first line of accordion.js is >> >> $(document).ready(function() { >> >> >> Firebug displays >> $(document)

Re: [Rails] Unable to install rails

2011-12-31 Thread Phil Dobbin
On 31/12/11 15:15, "Greg Akins" wrote: > On Fri, Dec 30, 2011 at 9:06 PM, Jason wrote: >> My recommendation is to use rails ready, I used it the other day when >> setting up my MacBook and was really excited with the results. >> >> https://github.com/joshfng/railsready > > Does railsready use

Re: [Rails] how to pass form values within an ajax call?

2011-12-31 Thread Leonardo Mateo
On Sat, Dec 31, 2011 at 12:54 AM, K.M. wrote: > hi guys, >  I am now rewriting an existing app (rails  2.3.8) with rails 3.1.x. > > As observe_field() is no longer the way to go with rails 3 when ajax > is used, I am trying to rewrite a piece of functionality for when a > select box (drop down) wi

Re: Re[2]: [Rails] bundle --deployment & --no-deployment

2011-12-31 Thread Hassan Schroeder
On Sat, Dec 31, 2011 at 5:31 AM, Ralph Shnelvar wrote: > I'm trying to deploy to Heroku and I am very unfamiliar with procedures for > it. Have you read their instructions? It's really pretty simple. > Am I even able to do a bundle whatever on the server they provide? You don't need to; Herok

Re: [Rails] Unable to install rails

2011-12-31 Thread Greg Akins
On Fri, Dec 30, 2011 at 9:06 PM, Jason wrote: > My recommendation is to use rails ready, I used it the other day when > setting up my MacBook and was really excited with the results. > > https://github.com/joshfng/railsready Does railsready use RVM? I've followed the RVM instructions on a couple

Re: [Rails] Daily Routine

2011-12-31 Thread Bruno Meira
Hmmm Thx... I will take a look in this whenever. It's seems easy to use. :D -- 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

Re[2]: [Rails] bundle --deployment & --no-deployment

2011-12-31 Thread Ralph Shnelvar
Title: Re[2]: [Rails] bundle --deployment & --no-deployment Saturday, December 31, 2011, 3:24:37 AM, you wrote: I am so lost. I'm trying to deploy to Heroku and I am very unfamiliar with procedures for it. Am I even able to do a bundle whatever on the server they provide? The machin

Re: [Rails] rmagick and imagemagick

2011-12-31 Thread Peter Vandenabeele
On Thu, Dec 29, 2011 at 8:24 AM, sethgitner wrote: > I am having issues loading imagemagick and rmagick on webfaction. > > I have installed a rails app called balder that organizes images. > > my main problem is that i can't seem to upoload the image sthrough balder. > > balder uses imagemagick a

[Rails] Fetching Videos from Facebook

2011-12-31 Thread The Rising Sword
Hi all, Wish all of you a Happy and Prosperous New year njoy the day and keep njoying for ever... Here is my Query regarding to my project which I find it difficult I used Fb Graph API also please help me out for the following: I am using rails and I need to fetch all user videos and user fr

Re: [Rails] Daily Routine

2011-12-31 Thread Gautam Pai
+1 to "whenever" gem for the exact reasons benjamin points out. Gautam Pai On Sat, Dec 31, 2011 at 12:45 AM, Benjamin Iandavid Rodriguez < ian@gmail.com> wrote: > You also might want to have a look at the Whenever gem it provides neat > syntax all done with ruby and integrates well with capi

Re: [Rails] bundle --deployment & --no-deployment

2011-12-31 Thread Gautam Pai
The machine where you run bundle --deployment, is that a development machine or a deployment machine?? because on http://gembundler.com/ it states Deploying Your Application On production servers, you can enable deployment mode: $ bundle install --deployment Do *not* use this flag on developmen

Re: [Rails] Re: how to play video in ruby on rails

2011-12-31 Thread hanish jadala
This playing a video is a new one for me so i am learning it. if u don't know how play a video it does not mean you don't know ROR . New things has to learned only by researching and in that process only i posted it. On Thu, Dec 29, 2011 at 1:46 PM, Ben Eggett wrote: > Sorry to be harsh, but if