|
Does anyone know of a good tutorial for installing Authlogic in Rails 3? I know how to generate the files and everything, I just keep getting errors. Has anyone here done this yet? for reference I followed: http://github.com/binarylogic/authlogic_example
|
# ¿ Aug 26, 2010 05:29 |
|
|
# ¿ Apr 27, 2024 09:49 |
|
"error": { "type": "OAuthException", "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration." I've read that changing my hosts file can fix this, but it has not worked for me. Does anyone know how I can get facebook to recognized a localhost machine? I'm going to keep trying because this is driving me insane. Edit: My changes worked, sanity restored. Oh My Science fucked around with this message at 00:04 on Nov 10, 2010 |
# ¿ Nov 10, 2010 00:00 |
|
This was covered a few pages ago, but I cannot find it. Do you guys have suggestions for hosting, preferably some kind of reseller hosting? I'll have a few client sites going up soon, and I need a host that is rails 3.0 compatible. Possibly a goon hosting solution? vvv I knew that was going to be the first answer. Oh My Science fucked around with this message at 20:39 on Mar 8, 2011 |
# ¿ Mar 8, 2011 20:35 |
|
code:
|
# ¿ Mar 20, 2011 21:50 |
|
I'm at my wits end, or maybe I'm too tired. This is my first time using carrierwave, and for some reason I am having a hell of a time getting lightwindow to work correctly with it. (or any lightbox for that matter) code:
How can I remove the trailing /, or is there a better solution for my lightbox needs? Edit: Figured it out. The lightwindow plugin must be depreciated. Oh My Science fucked around with this message at 08:35 on Jun 10, 2011 |
# ¿ Jun 10, 2011 08:03 |
|
Pardot posted:mayhaps if you still want to use that plugin. Thanks, but I decided to go with topup since it seems to have better documentation. I have a new problem now, and it's about using kaminari for pagination. My app is basically a simple photo gallery, and although I have pagination working for the gallery index method, I need to limit how many images are displayed using the show method as well. It looks like this. code:
I can provide more code if necessary.
|
# ¿ Jun 10, 2011 22:06 |
|
Argh, I still don't get it. Here is some more information, hopefully someone can show me what I am doing wrong. controller : code:
code:
code:
How would I use kaminari to paginate the photos in the show view?
|
# ¿ Jun 12, 2011 00:19 |
|
Obsurveyor posted:
Nope, I have tried many variations to no avail. Edit: loving got it. Thanks for the help. Oh My Science fucked around with this message at 01:21 on Jun 12, 2011 |
# ¿ Jun 12, 2011 00:55 |
|
BonzoESC posted:Did you forget params[:pagina]? Yup I think that was the problem. I wish the documentation was more clear about that.
|
# ¿ Jun 12, 2011 03:45 |
|
I'm starting to learn about polymorphic associations, and have run into a road block of sorts. So far I have followed and understood the basic concepts presented by ryan baits in episode #154, and have even created the same basic app. I can create new comments, and destroy, however I cannot figure out how to edit them. I understand that I should be using edit_polymorphic_path or edit_polymorphic_url, and am even 99% sure I am passing in the right models. However when I click the link I get a hash error, which may suggest something is wrong with my controller. so... does anyone have a working example or know of one that shows a complete polymorphic association in action? My final goal is to create a polymorphic image model with carrierwave, but cannot find many working examples. Or should I avoid using polymorphic associations all together?
|
# ¿ Jul 5, 2011 00:30 |
|
I'm running into an issue implementing a simple contact form using this http://www.railsmine.net/2010/03/rails-3-action-mailer-example.html example. Basically I changed it from support to contact, and although I believe the code is all correct, it will not render the form partial for the contact controller. What could be causing this?
|
# ¿ Jul 10, 2011 05:59 |
|
No that is the first thing I look for now, and I noticed the typo in the tutorial. I have however solved my own problem, it only required 6 hours of sleep to track it down. Thanks for the suggestion.
|
# ¿ Jul 10, 2011 15:30 |
|
How would I use something like Adapt.js with a rails 3.1 app? The configuration calls for an absolute path to my resources, and there is a probably a better way to do this. Never mind wrote my own. Oh My Science fucked around with this message at 07:18 on Jul 22, 2011 |
# ¿ Jul 22, 2011 05:55 |
|
I know this was answered awhile back, but how can I speed up the load time of a heroku app? Pretty sure it had something to do with installing new relic to keep your instance running... just wondering if there is another method.
|
# ¿ Aug 30, 2011 18:18 |
|
A MIRACLE posted:Are you on a free account? They'll spin your dyno down if there's no activity for a few minutes. Yes I am currently using a free account, and am willing to spend money to keep it running. I am / was under the impression that adding a dyno or worker would not prevent the instance from dropping. Damnit I was going through the documentation and didn't find that. Thanks VVV Oh My Science fucked around with this message at 18:47 on Aug 30, 2011 |
# ¿ Aug 30, 2011 18:41 |
|
I'll be looking at adding a cart to an existing clients site, and I would appreciate some feed back regarding spree. If I need a highly customized look, is spree simple enough to bend to my will? I took a look at the documentation, and they recommended against replacing the entire theme manually due to issues caused by future upgrades. Also, is there anything else I should be looking at in terms of rails e-commerce. Spree seems to offer what the client wants, but I am eager to learn how to do this myself. Considering time is not an issue, are there some good (current) resources regarding creating your own simple(?) carts? To clarify this is for an artists site, and all they really want to do is sell prints from their online portfolio. Ideally it would be nice to have the option of adding pieces to a store when they are uploaded to the portfolio, and define print size, prices, etc. all at the same time. I need to be schooled in e-commerce please.
|
# ¿ Dec 31, 2011 09:41 |
|
I'm playing around with sorting a list of products, and need some help. After following Ryan Bates HABTM tutorial I now have products that can belong to a number of categories. I now want to filter products by their category specified by the user. Can someone give me an example or hints on how to do this?
|
# ¿ Feb 21, 2012 20:55 |
|
Pardot posted:You should buy somethingawful platinum so I can PM you and hook you up with beta access to things. If I already have platinum can I have access to these beta things? My Setup: - RVM, ruby 1.9.3 (switching to rbenv eventually) - Textmate - iTerm2 - Heroku - postgres - git
|
# ¿ Feb 27, 2012 23:42 |
|
I understand the appeal of having an all-in-one app to setup my rails enviroment, it just doesnt seem neccessary with tools like brew, bundler and rbenv. Just last night I made the switch to rbenv after a system format and it only took me 10-15 minutes to be up and running again. Has the setup process become too difficult for developers to handle? Just to be clear, is he trying to make a RoR GUI editor as well? Or just a tool to manage your gems and ruby installs?
|
# ¿ Mar 29, 2012 02:57 |
|
code:
Edit: It was a pathing issue. Once I corrected the path in .bash_profile and reinstalled the pg gem it is working as expected again. What's really bothering me is the inability to play with Rails Apps Composer, since the active record recipe doesn't allow me to provide the username / password / host options. It simply tries using the default rails database.yml, which results in the script being unable to access the db. While I'm at it, how do people feel about Rails Apps Composer, or Rails Wizard? Are they a good idea to use for basic app templates? Or would you rather stick to the manual approach of setting up a new app? Oh My Science fucked around with this message at 19:02 on Apr 9, 2012 |
# ¿ Apr 9, 2012 08:50 |
|
enki42 posted:Related question to Heroku spinning down - how does this work on the Cedar stack? If I have 1 web dyno and 1 worker dyno, is it possible for that web dyno to spin down (i.e. do I need to have at least 2?) I am fairly certain it does not count workers towards spin down, and that yes, at least two dinos are needed.
|
# ¿ Apr 13, 2012 15:51 |
|
I'm afraid I don't really know how to ask for this properly, but here it goes. I would like to provide users with the ability to use different view layouts based on their user settings, what would be the best way to accomplish this? ( similar to what Facebook & twitter has done recently ) So far my google-fu has not produced many results, and after reading the API on layouts and templates I feel I may be missing something fundamental.
|
# ¿ May 20, 2012 02:15 |
|
prom candy posted:The themes_for_rails gem might be interesting to you as well. This is exactly what I wanted, thank you!
|
# ¿ May 20, 2012 17:03 |
|
Care to elaborate on that point? I haven't read the documentation yet, but if you can provide advice based on your hiccups it may save me some time. What was the proper folder structure?
|
# ¿ May 20, 2012 18:14 |
|
Anyone know how to manually install compass in a rails app? I want to mess around with Susy 1.0.rc.0 but it requires the alpha compass release v0.13.alpha.0. unfortunately they stripped regular compass of its rails integration starting in v0.12, and instead rely on compass-rails, which has not updated to the alpha release. Any ideas? I keep getting this error: File to import not found or unreadable: susy Never mind, found a release candidate of compass rails. Oh My Science fucked around with this message at 04:19 on May 22, 2012 |
# ¿ May 22, 2012 04:16 |
|
I find myself wanting to Learn more about ruby, has anyone taken the ruby course from pragmatic studio? I could probably grab a book or two, but I'm partial to video tutorials.
|
# ¿ Jun 20, 2012 16:36 |
|
Dangerllama posted:You might also check out Coursera's SaaS class. It's the free on-line version of UC Berkeley's SaaS course, and covers Ruby, Rails, test-driven development, and a couple of other things over six weeks. Thanks for this, ill be sure to check it out next. I ponied up for the pragmatic course and although it's not challenging me, I am relearning some basic fundamentals.
|
# ¿ Jun 23, 2012 21:01 |
|
Pardot posted:If you want to step it up a bunch, go from using LIKE to great built-in fulltext search. Pivotal released a gem that makes using the tsvector stuff easy with rails: https://github.com/casecommons/pg_search This is awesome.
|
# ¿ Jul 30, 2012 18:21 |
|
I started learning rails & ruby at the same time, so it's possible. A few months back I decided to focus more so on ruby in order to better understand what rails does, and I have to say it makes my life easier. I signed up for the pragmatic online ruby course, which proved to be a decent resource. At this point I would like to dig deeper, not sure where I should look though.
|
# ¿ Sep 16, 2012 00:38 |
|
Why learn with Hobo? I remember running into it when I first started as well, but I decided to learn RoR with just RoR, no fancy additions. Does Hobo offer something I am not aware of? Is it used in a lot of production apps (their gallery is pretty sparse)?
|
# ¿ Oct 19, 2012 07:49 |
|
Knyteguy posted:On a side note, I did try Heroku. It really seems like more of a headache than setting up my server in this manner... I'm really interested to know why you think this. I've used Heroku for a little while now, and set-up is nearly painless. My only complaint is the price associated with it. The bare minimum (after the free tier) is $35.00 a month + whatever add-ons you want to use. I have recently experimented with a VPS or two, and although I got it running properly, it took time (which could have been spent working on the app). At this point I'm comfortable setting up a new server with rvm-capybara + nginx + unicorn, but my god was the documentation to do so fragmented. The cost however is much lower.
|
# ¿ Nov 20, 2012 04:11 |
|
Is there an alternative for Mercury Editor? I think this is over kill for what I want to do. I just want to provide some buttons for users to markup a blog post. Or am I better off creating my own with red carpet?
|
# ¿ Nov 22, 2012 08:03 |
|
I'm looking for an appointment booking gem or engine. I feel that something like this should already exist, but all I can find is https://github.com/Leveton/appointments which is poorly documented & tested. Should I maybe look at an external service which offers an API?
|
# ¿ Nov 26, 2012 03:43 |
|
Fillerbunny posted:I have sort of a generic question about modelling a database. Is there any sort of rule of thumb about using STI versus polymorphic relationships? If you have a railscast account Ryan just posted an episode on this very subject. I'll give it a watch and get back to you. STI and Polymorphic Associations
|
# ¿ Nov 26, 2012 21:05 |
|
Fillerbunny posted:I don't have a pro account, sadly. That sounds like it's right up my alley. Ryan has a revised polymorphic episode, Polymorphic Association (revised), which may give you some insight. poo poo never mind, forgot revised episodes cost $$ too. sorry. Oh My Science fucked around with this message at 21:44 on Nov 26, 2012 |
# ¿ Nov 26, 2012 21:39 |
|
The Sweetling posted:Jumping on the tutorial bandwagon here: please recommend some good resources for brushing up on my PostgeSQL. I haven't had the need to write complex queries in ages and feel a bit rusty. Ryan Bates has some fairly recent screencasts covering PostgreSQL & its features. Most of the good ones are "subscription only" though, and you'll have to cough up $9 to view them. I found this http://www.postgresqltutorial.com/.
|
# ¿ Jan 7, 2013 18:32 |
|
Maybe I'm reading into this incorrectly but does the cedar stack use intelligent routing instead of random? Also, as someone who spent the last year digging into rails 3.x is the focus in 4.x now multi threaded apps? It seems to be that way with the introduction of live streaming & thread-safety enabled by default.
|
# ¿ Feb 17, 2013 19:09 |
|
At the moment I think it has something to do with precompiling the assets. I have dug through the docs & googled it to death, but no solutions yet. Of course on my local machine it works great... I can run rake assets:precompile just fine, and so can heroku if I choose not to do it locally. I just keep getting 404's for my js & css. Could this possibly have something to do with the browser gem? Found the dev article for rails 4 Oh My Science fucked around with this message at 17:56 on Mar 30, 2013 |
# ¿ Mar 30, 2013 09:40 |
|
Check out http://www.codelearn.org/rails-tutorials It lets you learn basic rails without having to setup a dev environment locally.
|
# ¿ Jun 20, 2013 22:11 |
|
|
# ¿ Apr 27, 2024 09:49 |
|
I was just going to recommend vagrant as well. Having a standardized environment for students and instructor could potentially save you a lot of pain.
|
# ¿ Jun 20, 2013 22:59 |