[Rails] Ruby on Rails Opportunity
We are currently networking for a Senior Software Engineer, with Ruby on Rails experience. Interested candidates please email resumes to kris...@bcius.com.- --- Title: Senior Software Engineer (983-1)- Location: Raleigh, NC Compensation: Commensurate with experience Summary/Responsibilities:- As part of a team, implement web user interfaces using Ruby on Rails 3.2 and JavaScript Model infrastructure, power distribution, and cooling for data centers and other facilities Develop charts and analytics that give users insight into the energy consumption, savings, and environmental conditions at their facilities. Work on overall architectural problems, particularly as they relate to product integration, data transfer, scalability and performance Develop and maintain REST interfaces for our products Provide real value for our customers Provide unit-test coverage for delivered code Requirements:- Eagerness to learn and stay up-to-date with new technology 3+ years of commercial experience with Ruby on Rails or strong experience in another modern MVC web framework with a proven desire to learn Ruby on Rails Deep knowledge of ExtJS, jQuery, Dojo, or other feature rich Ajax JavaScript libraries Experienced with hand-coding JavaScript Strong understanding of HTML, CSS and applying style sheets to create sophisticated layouts 4+ years of experience in creating web applications Solid understanding of User Interface design overall usability issues. Linux power user Strong experience with SQL databases (PostgreSQL preferred) Creative, industrious, self-managed Excels when working as part of a small, highly skilled, agile, and product-focused team Previous experience with Energy Management products or Network Management Systems Experience in the day to day operations of a data center environment, particularly as it relates to planning and infrastructure management Experience with Rails Engines Passion for throwing out ideas to see what sticks Graphic design Experience with unit tests Thank you! -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/975308fed9aa2f9dded855eb747bf094%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.
[Rails] Experimental JS library with Rails
Hi everyone on this list. First time posting here ;) I'm writing here because I had an idea while working on a project that required heavy use of javascript and I thought I would share it with the world. Before I explain it, I would like to take a second to warn you that this library might feel very controversial to some of you because it goes against the grain when it comes to what's available in terms of JS frameworks. This small library is very early on and is very opinionated. Even so, here's a few things that this library does. *Javascript objects are bound to DOM element* I may start with the most controversial feature. I know that prototype.js had issue with this a while ago. But the web environment is not what it's used to be. *Event based response when dealing with JS request.* I wanted to have something that could use rails' remote=true attributes and be automatically dispatch the response to different object in the DOM. So I build a custom XHR object that will take the response from JS and build an event with the following naming scheme: "controller:action". So basically, if you send a form with remote=true to create a new posts through the PostsController, an event posts:create would be fired automatically. *Automatic instantiation of objects* Using the new DOM Observer pattern, it looks for any DOM object that declares a javascript object and instantiate it automatically. If the callback is defined in the object, the loaded callback is fired which allow someone to bind events to that object as soon as it's ready. *Bind HTML to JavaScript events* HTML might be slower than JSON to render, but it offers a lot more flexibility. You can look for attributes, children, etc. I'm aware that this might all sound a little vague, so I made a gem that, hopefully, will make it easier for you guys to understand. https://github.com/pothibo/ethereal Feel free to ask question if you have any :) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/03a2539f-5b71-4777-acc9-feb2be7d6a39%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Rails] One huge table or separate tables? design issue
In the Rails world, what Scott wrote is basically right (bordering on insane). ActiveRecord really won't place nice with that kind of a design. Outside of the Rails world, "Big Data" and Reporting people do things like that (date stamping table names) for aggregate reporting. There are times when those kinds of designs aren't such a bad idea (like you have a massive amount of data and you want to build a reporting engine). But if that's your case, Rails isn't the right tool for you. You could still write a Rails app, but then use some kind of reporting tool to extract data from your Rails database and copy it into another reporting database where you will do your reporting operations (and probably use Crystal Reports or something to deal with that data). On Oct 15, 2014, at 10:58 AM, Scott Ribe wrote: > On Oct 15, 2014, at 8:44 AM, Yongbiao Long wrote: > >> How to deal with the daily created tables in rails? > > Don't do that. It's an unnormalized, broken, bordering-on-insane design. The > date is an attribute of some entity that belongs in its own table, to which > your other data is related. Figure out that entity, design it, set up the > relationship appropriately between the two. > > -- > Scott Ribe > scott_r...@elevated-dev.com > http://www.elevated-dev.com/ > (303) 722-0567 voice > > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/97FDAFF1-402E-4AE6-BED3-AC1F480E5699%40elevated-dev.com. > For more options, visit https://groups.google.com/d/optout. > Jason Fleetwood-Boldt t...@datatravels.com http://www.jasonfleetwoodboldt.com/writing All material © Jason Fleetwood-Boldt 2014. Public conversations may be turned into blog posts (original poster information will be made anonymous). Email ja...@datatravels.com with questions/concerns about this. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4628DB17-2C9E-46DA-8F9E-145D2C4711B3%40datatravels.com. For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Devise Gem Auto login
Please direct your question to the Devise help group, which you will find here https://groups.google.com/forum/#!forum/plataformatec-devise I am also on that list so when you send it to that list I will answer it there. -Jason On Nov 4, 2014, at 12:05 PM, Venkat Amarnath S. wrote: > Hi , > > I have a requirement where users will not enter password to login > into the system. They will pass us external secret token and with this > token we can get the user record from users table. > > Here with this user object I want to auto login into my > application. > > Thanks, > Venkat. > > -- > 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 unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/9c64b016dbe36449d2c572d0590f0406%40ruby-forum.com. > For more options, visit https://groups.google.com/d/optout. > Jason Fleetwood-Boldt t...@datatravels.com http://www.jasonfleetwoodboldt.com/writing All material © Jason Fleetwood-Boldt 2014. Public conversations may be turned into blog posts (original poster information will be made anonymous). Email ja...@datatravels.com with questions/concerns about this. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/EA504E78-0413-4072-88F1-82040B79BF6F%40datatravels.com. For more options, visit https://groups.google.com/d/optout.
[Rails] Devise Gem Auto login
Hi , I have a requirement where users will not enter password to login into the system. They will pass us external secret token and with this token we can get the user record from users table. Here with this user object I want to auto login into my application. Thanks, Venkat. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9c64b016dbe36449d2c572d0590f0406%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Re: copy app to another server
Frederick Cheung wrote: Having run bundle as root may well have left some directories owned by root. Where bundler tries to write files to depends on how its configured - (the .bundle/config file, if it exists may have some of these settings). In a production environment passing --deployment should result in everything being installed in your app's directory (or in whatever --path setting you have previously passed). I have not ran bundle completely, but I guess it could have altered some directories when I ran it the first time and hit Ctl+C while it was still trying to download and after seeing the warning not to run as root. I don't have a .bundle directory in the app directory or in my user home directory. I do see a .bundler directory in my home folder, but no config file, just cache. I cleaned it out and ran bundle update again to find the folder recreated and references to ruby 1.9.1, which I did install the Ubuntu package once but thought removed after reading that is was broken and all examples I find suggest using rvm to install ruby. I last used rvm to install ruby 1.9.3p392. I was trying to match the version of the production server where I copied this app from. So it seems something is messed up with versions. Also found I had the Ubuntu version of rvm when I had also downloaded via curl. Anyway, since I seem to have screwed this install up with no experience setting up ruby and have learned a lot here and reading since my first try, I decided to start over and completely remove ruby and rvm. I used this to remove... http://stackoverflow.com/questions/9056008/installed-ruby-1-9-3-with-rvm-but-command-line-doesnt-show-ruby-v/9056395#9056395 I installed all before as root, this time as my own user using sudo and this to setup ruby with rvm except I did line 7 as 'rvm install ruby-1.9.3-p392' and adjusted line 8 with same version: https://www.linuxcasts.net/casts/ubuntu/1004.shtml My question now is if rubygems current is acceptable? I'm not sure what version the production server is running, should that be checked and matched as well? -- Robert -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5458E802.1000604%40webtent.org. For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Re: form_for not passing id?
Hey Dave, Before any controller action use "raise params.inspect ", you will get parameters coming from Form. You have to use that parameters only . In your case just add this line in edit action (Edit Method) "raise params.inspect". you will get all parameters. On Mon, Nov 3, 2014 at 7:19 PM, Dave Castellano wrote: > Matt Jones wrote in post #1161637: > > On Sunday, 2 November 2014 20:57:43 UTC-5, Ruby-Forum.com User wrote: > >> ... > >> <%= f.submit 'Update', :class => 'btn btn-primary' %> > >> ... > >> <% end %> > >> > >> @profile contains # as it should. > >> > >> routes contains: resources :profiles and the resulting routes appear OK > >> > >> > > From the route it's generating, I suspect you have a `resource :profile` > > someplace above this. That matches the controller actions you're > > showing, > > which use `current_user.id` instead of `params[:id]`. You'll likely need > > to > > specify the URL explicitly to `form_for`. > > > > --Matt Jones > > Thank you, specifying the URL did it nicely! > > Dave > > -- > 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 unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/5c4d48bf605038b7c434b6869f19f4a9%40ruby-forum.com > . > For more options, visit https://groups.google.com/d/optout. > -- Thank You. Best Wishes, BalaRaju Vankala, 8886565300. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAGQ0aie8pcjAACAgvj--yysSAhuKT3q6G739T1TypQXtt745Uw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Rails] Re: Getting doublets of records while using an offset
On Tuesday, October 28, 2014 1:14:56 PM UTC, Max Grønlund wrote: > > Consider this schenario where I'm having pagination on a page > > @recordings = Recording.order(:title).page(params[:page]).per(4) > > Is the issue that title is not in fact unique? If so you could order on two columns (rather than creating an extra unique column), for example Recording.order(:title, :id).page(params[:page]).per(4) Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/64166fb7-bfe8-473d-8c34-c431c212ba17%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Rails] Re: Displaying ruby code in a view
On Tuesday, November 4, 2014 1:23:48 AM UTC, Chris Kacerguis wrote: > > Hello All, > > I'm pretty new to Rails / Ruby development, so please bear with me if this > is a RTFM question. > > I'm trying to output ruby snippets (snippets are stored in a file) in my > view, but erb/rails keeps trying to parse the code. Is there any way I can > get Rails to not to parse the Ruby and just output it as text? > > I hope that makes sense. > > if it's not in <% tags then it should be output as is (although you may need to escape it to stop the browser interpreting as malformed html - depending on how you are including these snippets this might be done automatically) Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fa8acfed-7d2b-4158-a29f-ec17d7cc53c5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Rails] Re: Live Streaming
On Tuesday, November 4, 2014 10:27:59 AM UTC, Makhate Makhate wrote: > > Hey, > > I read that Rails supports Live Streaming and i'd like to get a > clarification; does that mean that rails supports streaming live audio and > video; just like on radio stations websites? > > Live streaming refers to the fact that the response is sent progressively, rather than rails rendering the whole thing in one go and then sending it. This enables some long-polling type features. It can also improve user experience, since you can send the head of the page, telling the browser about what css/javascript to download and have it make a start on downloading them before you've finished sending the response. There's not really any connection with the streaming of audio/video. Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6bfd4134-a78a-4ced-9700-7836f3555377%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Re: copy app to another server
On Monday, November 3, 2014 5:46:27 PM UTC, Robert Fitzpatrick wrote: > > Frederick Cheung wrote: > > You should never run bundle as root (or using sudo). When deploying, all > > the gems get installed to /vendor so there should not be any > > need for elevated permissions. I don't recall off the top of my head > > whether rvm installs bundler by default - it doesn't then you do need to > > install the bundler gem (which for a systemwide rvm install does require > > running as root. > > > > rvmsudo gem install bundler > > Thanks for the help. It successfully installed the bundle under my user, > but get this error when trying to run 'bundle install': > > Fetching source index from https://rubygems.org/ > Could not find sprockets-2.2.2.backport2 in any of the sources > > But interesting to find those seem to be commented out in the Gemfile: > > $ grep sprockets Gemfile ># gem 'sprockets-rails', '=2.0.0.backport1' ># gem 'sprockets', '=2.2.2.backport2' > > I found some info about trying 'bundle update' and that gives an error > as well: > > $ bundle update > > Updating https://github.com/alicetragedy/pagedown-bootstrap-rails > Updating https://github.com/ruport/ruport.git > error: cannot open .git/FETCH_HEAD: Permission denied > > My user owns the app directory I am running this in, is there some other > directory git is trying to use? > > Having run bundle as root may well have left some directories owned by root. Where bundler tries to write files to depends on how its configured - (the .bundle/config file, if it exists may have some of these settings). In a production environment passing --deployment should result in everything being installed in your app's directory (or in whatever --path setting you have previously passed). Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/dc8e7ea7-0e61-459e-af90-8b166c5d5566%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Rails] Displaying ruby code in a view
Hello All, I'm pretty new to Rails / Ruby development, so please bear with me if this is a RTFM question. I'm trying to output ruby snippets (snippets are stored in a file) in my view, but erb/rails keeps trying to parse the code. Is there any way I can get Rails to not to parse the Ruby and just output it as text? I hope that makes sense. Thanks in advance for any advice / direction. Chris -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7e3790cc-fd64-4685-8897-66e95caaa0f6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Rails] Live Streaming
Hey, I read that Rails supports Live Streaming and i'd like to get a clarification; does that mean that rails supports streaming live audio and video; just like on radio stations websites? -- Regards, Makhate Makhate (Lesotho) "Forgiveness received makes a jubilant soul, forgiveness granted purifies a soul" -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAKaTJGwKaDSqEEgTca2F9hDGgSMtuLMxbT%2B413Ma88hheyHB7w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.