Hi there.
I have a problem about accessing posts/show.html.erb
i can listing all posts on index.html.erb but when i try to access any
post html tags are not shown in show.html.erb, like images.
--
Controller
class PostsController < ApplicationController
before_action :postu_beli
Hi,
I am using omni-auth for the user authentication and logged in the user
via access token.
But like facebook i want to fetch the user profile information and all
the albums he/she uploaded and images belongs to that albums, than save
the public url to my own database.
I found fb_graph a very goo
unit.created_at.class
=> ActiveSupport::TimeWithZone
Time.zone.now.class
=> ActiveSupport::TimeWithZone
Time.zone.now - unit.created_at
=> 47709736.32316899
I think that's the number of seconds that have passed between when the unit
was created and the current time. Is this correct? If
I'm having a tough time tracking down why my mail is not being sent from an app
I migrated from 3.0 -> 3.1 -> 3.2. The relevant code sections are in this SO
question. My questions here are:
1) Does something just jump out as wrong in my setup?
2) How would you track this down. All my specs pass
On Sep 26, 2013, at 1:55 PM, Phil Boyce wrote:
> I'm using DigitalOcean as my hosting provider as I have some simple
> sites there. I thought I'd try to setup rails on a domain there to see
> what I could accomplish.
>
> OS: Ubuntu 12.04 x32
> Rails: 4.0.0
> Ruby: 2.0.0p247
>
Using passenger I would assume you are using a virtual host. Do you
have that virtual host defined in your dns or etc/hosts? Are you
addressing the virtual host by name? It would be expected that you would
just see the nginx default page if you are going to your assigned host name.
Norm
On
I'm using DigitalOcean as my hosting provider as I have some simple
sites there. I thought I'd try to setup rails on a domain there to see
what I could accomplish.
OS: Ubuntu 12.04 x32
Rails: 4.0.0
Ruby: 2.0.0p247
nginx: 1.1.19
MariaDB:10.0.4
Passenger: 4.0.19
node.js
Rails 3.2.14, Ruby 1.9.3, devise_invitable 1.1.8
I am trying to get invitations containing custom fields to validate their
contents properly. I have tried the invite_keys hash route, as documented here:
https://github.com/scambra/devise_invitable#model-configuration and unless I am
doing someth
I'm using DigitalOcean as my hosting provider as I have some simple
sites there. I thought I'd try to setup rails on a domain there to see
what I could accomplish.
OS: Ubuntu 12.04 x32
Rails: 4.0.0
Ruby: 2.0.0p247
nginx: 1.1.19
MariaDB:10.0.4
Passenger: 4.0.19
node.js
Avi wrote in post #1122484:
> Hello All,
>
> How can I differentiate the call between client ios app & browser call?
>
> session_controller - create method is being used by both client & rails
> web
> application.
> I want to restrict for web application to use create method.
>
> how can I achieve
Hi Everyone,
I'm trying to use Rails 4's ActionController::Live functionality to do a
chat-like interface in my app. I've found a number of blog posts, all of
which seem to be based on Aaron Patterson's original one here:
http://tenderlovemaking.com/2012/07/30/is-it-live.html
Has anyone here succ
Hi,
I am using Carrierwave in my Rails 3.x app along with Fog to store
images on S3. I am trying to prevent uploading of duplicate images. I
am a novice programmer and would appreciate any suggestions.
This is my approach:
1. Upload file using carrierwave.
class ImageUploader < CarrierWave::Upl
Hello All,
I am getting a problem while login for inactive users.
While login I am getting -
Processing by Devise::SessionsController#new as HTML
User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2
LIMIT 1
Redirected to http://localhost:3000/
Filter chain halted as :requir
13 matches
Mail list logo